16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

Apply CMake policy CMP0072 only when available

CMP0072 policy introduced in commit e5d60cb requires CMake >= 3.11
This commit is contained in:
milek7
2018-07-11 19:25:04 +02:00
committed by Mikolaj Izdebski
parent 567dc37af4
commit 9955bb0426

View File

@@ -152,7 +152,10 @@ set_target_properties( ${PROJECT_NAME}
DEBUG_POSTFIX "_d"
)
cmake_policy(SET CMP0072 NEW)
if (POLICY CMP0072)
cmake_policy(SET CMP0072 NEW)
endif()
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES})