tde_import: Reducing the noise, more common listing of the result.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/109/head
Slávek Banko 2 months ago
parent 71fe92911c
commit 6cf464b091
Signed by: SlavekB
GPG Key ID: 608F5293A04BE668

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

Loading…
Cancel
Save