Commit 7cd3930b authored by Jan Möbius's avatar Jan Möbius

Set policy 0100 in toplevel CMAKE

parent db8c0608
Pipeline #14087 canceled with stages
in 20 minutes and 24 seconds
......@@ -12,6 +12,12 @@ if("${PROJECT_NAME}" STREQUAL "")
project (OpenMesh)
endif()
# Set AUTO UIC/MOC Policy to new for CMAKE 3.17 or higher
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17")
cmake_policy(SET CMP0100 NEW)
endif()
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS "6.0" AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER "4.9" OR CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "4.9")
message(WARNING "Your version of GCC contains an optimizer bug. Please verify that you do not use -O3!")
......
......@@ -101,10 +101,5 @@ macro (acg_qt5)
# Enable automoc
set(CMAKE_AUTOMOC ON)
if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.17")
cmake_policy(SET CMP0100 NEW)
endif()
endif (QT5_FOUND)
endmacro ()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment