summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2024-05-28 17:03:16 +0200
committerSlávek Banko <[email protected]>2024-05-30 09:46:49 +0200
commit68452c7f2dce671cd12eb841984d2e658204f217 (patch)
tree34464702ff164f9455f3b62b37bdcbc411c9090e /modules
parentd9c415570a23417f01c6e6cf806d751addec3164 (diff)
downloadtde-cmake-68452c7f2dce671cd12eb841984d2e658204f217.tar.gz
tde-cmake-68452c7f2dce671cd12eb841984d2e658204f217.zip
tde_import: Reducing the noise, more common listing of the result.
Signed-off-by: Slávek Banko <[email protected]> (cherry picked from commit 6cf464b091b0127a7f69aae31e504fcb405c676b)
Diffstat (limited to 'modules')
-rw-r--r--modules/TDEMacros.cmake26
1 files changed, 15 insertions, 11 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 3012ec9..edbd124 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -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()