tde_uic: Set CMAKE_MODULE_PATH only if it is needed. This prevents CMP0017.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/71/head
Slávek Banko 4 years ago
parent 639294f962
commit dc88ab2c2c
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -425,7 +425,6 @@ macro( tde_add_ui_files _sources )
-DUI_FILE:FILEPATH=${_ui_absolute_path}
-DMASTER_SOURCE_DIR:FILEPATH=${CMAKE_SOURCE_DIR}
-DMASTER_BINARY_DIR:FILEPATH=${CMAKE_BINARY_DIR}
-DTDE_CMAKE_MODULES:FILEPATH=${TDE_CMAKE_MODULES}
-P ${TDE_CMAKE_MODULES}/tde_uic.cmake
DEPENDS ${_ui_absolute_path} )

@ -9,7 +9,9 @@
#
#################################################
set( CMAKE_MODULE_PATH "${TDE_CMAKE_MODULES}" )
if( NOT ${CMAKE_CURRENT_LIST_DIR} STREQUAL ${CMAKE_ROOT}/Modules )
set( CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}" )
endif()
include( TDEMacros )
get_filename_component( _ui_basename ${UI_FILE} NAME_WE )

Loading…
Cancel
Save