summaryrefslogtreecommitdiffstats
path: root/modules/TDEMacros.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2022-01-12 17:21:45 +0100
committerSlávek Banko <slavek.banko@axis.cz>2022-01-12 17:21:45 +0100
commitd863e15b5049a05b617276fdf86e2df42a0d7501 (patch)
tree03fc7a0c36e2e93b847d0aa681120d8826d7889c /modules/TDEMacros.cmake
parent857971e81015596d53ce861d08b0e64169a33d7c (diff)
downloadtde-cmake-d863e15b5049a05b617276fdf86e2df42a0d7501.tar.gz
tde-cmake-d863e15b5049a05b617276fdf86e2df42a0d7501.zip
Add TQT_CMAKE_DIR variable.
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
Diffstat (limited to 'modules/TDEMacros.cmake')
-rw-r--r--modules/TDEMacros.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/TDEMacros.cmake b/modules/TDEMacros.cmake
index 661587f..b438deb 100644
--- a/modules/TDEMacros.cmake
+++ b/modules/TDEMacros.cmake
@@ -773,10 +773,12 @@ macro( tde_import _library )
else()
if( EXISTS "${TDE_CMAKE_DIR}/${_library}.cmake" )
include( "${TDE_CMAKE_DIR}/${_library}.cmake" )
- message( STATUS " ok, found import file" )
+ elseif( EXISTS "${TQT_CMAKE_DIR}/${_library}.cmake" )
+ include( "${TQT_CMAKE_DIR}/${_library}.cmake" )
else()
- tde_message_fatal( "'${_library}' are required,\n but is not installed nor selected for build" )
+ tde_message_fatal( "'${_library}' is required, but is not installed nor selected for build" )
endif()
+ message( STATUS " ok, found import file" )
endif()
endmacro()