|
|
|
@ -872,10 +872,12 @@ endfunction( )
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
macro( tde_import _library )
|
|
|
|
|
message( STATUS "checking for '${_library}'" )
|
|
|
|
|
if( NOT DEFINED TDE_IMPORT_${_library} )
|
|
|
|
|
message( STATUS "Checking for '${_library}'" )
|
|
|
|
|
string( TOUPPER "BUILD_${_library}" _build )
|
|
|
|
|
if( ${_build} )
|
|
|
|
|
message( STATUS " ok, activated for build" )
|
|
|
|
|
message( STATUS "Checking for '${_library}' - ok, activated for build" )
|
|
|
|
|
set( TDE_IMPORT_${_library} "build" CACHE INTERNAL "Library ${_library} activated for build" )
|
|
|
|
|
else()
|
|
|
|
|
if( EXISTS "${TDE_CMAKE_DIR}/${_library}.cmake" )
|
|
|
|
|
include( "${TDE_CMAKE_DIR}/${_library}.cmake" )
|
|
|
|
@ -884,7 +886,9 @@ macro( tde_import _library )
|
|
|
|
|
else()
|
|
|
|
|
tde_message_fatal( "'${_library}' is required, but is not installed nor selected for build" )
|
|
|
|
|
endif()
|
|
|
|
|
message( STATUS " ok, found import file" )
|
|
|
|
|
message( STATUS "Checking for '${_library}' - ok, found import file" )
|
|
|
|
|
set( TDE_IMPORT_${_library} "import" CACHE INTERNAL "Library ${_library} imported" )
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
endmacro()
|
|
|
|
|
|
|
|
|
|