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

Merge pull request #26 from mizdebsk/cmake31

Apply CMake policy CMP0072 only when available
This commit is contained in:
Milek7
2018-08-06 01:32:41 +02:00
committed by GitHub

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})