Switch to new policy for 3.17 cmake
This commit is contained in:
@@ -101,5 +101,12 @@ macro (acg_qt5)
|
||||
# Enable automoc
|
||||
set(CMAKE_AUTOMOC ON)
|
||||
|
||||
if(${CMAKE_VERSION} VERSION_GREATER "3.17")
|
||||
|
||||
cmake_policy(SET CMP0100 NEW)
|
||||
message("Version greater 3.17, enable policy")
|
||||
endif()
|
||||
|
||||
|
||||
endif (QT5_FOUND)
|
||||
endmacro ()
|
||||
|
||||
Reference in New Issue
Block a user