CMake: explain the policy settings
This commit is contained in:
parent
685c2c9de0
commit
948ecb4fd1
@ -135,10 +135,11 @@ set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeModules" )
|
|||||||
if( POLICY CMP0057 )
|
if( POLICY CMP0057 )
|
||||||
cmake_policy( SET CMP0057 NEW )
|
cmake_policy( SET CMP0057 NEW )
|
||||||
endif()
|
endif()
|
||||||
# CMake 3.9, 3.10 compatibility
|
# Let ``AUTOMOC`` and ``AUTOUIC`` process ``GENERATED`` files.
|
||||||
if( POLICY CMP0071 )
|
if( POLICY CMP0071 )
|
||||||
cmake_policy( SET CMP0071 NEW )
|
cmake_policy( SET CMP0071 NEW )
|
||||||
endif()
|
endif()
|
||||||
|
# Recognize more macros to trigger automoc
|
||||||
if(NOT CMAKE_VERSION VERSION_LESS "3.10.0")
|
if(NOT CMAKE_VERSION VERSION_LESS "3.10.0")
|
||||||
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES
|
list(APPEND CMAKE_AUTOMOC_MACRO_NAMES
|
||||||
"K_PLUGIN_FACTORY_WITH_JSON"
|
"K_PLUGIN_FACTORY_WITH_JSON"
|
||||||
|
Loading…
Reference in New Issue
Block a user