Add support for relative paths in '_tde_internal_setup_path'

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/108/head
Michele Calgaro 1 month ago
parent 5e76949219
commit 71fe92911c
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -15,10 +15,14 @@
macro( _tde_internal_setup_path _path _default _comment )
if( DEFINED ${_path} )
set( ${_path} "${${_path}}" CACHE PATH "${_comment}" )
else( DEFINED ${_path} )
if( IS_ABSOLUTE ${${_path}} )
set( ${_path} "${${_path}}" CACHE PATH "${_comment}" FORCE )
else( )
set( ${_path} "${CMAKE_INSTALL_PREFIX}/${${_path}}" CACHE PATH "${_comment}" FORCE )
endif( )
else( )
set( ${_path} "${_default}" )
endif( DEFINED ${_path} )
endif( )
endmacro( _tde_internal_setup_path )

Loading…
Cancel
Save