mirror of
https://github.com/MaSzyna-EU07/maszyna.git
synced 2026-07-22 22:09:19 +02:00
Merge pull request #26 from mizdebsk/cmake31
Apply CMake policy CMP0072 only when available
This commit is contained in:
@@ -152,7 +152,10 @@ set_target_properties( ${PROJECT_NAME}
|
|||||||
DEBUG_POSTFIX "_d"
|
DEBUG_POSTFIX "_d"
|
||||||
)
|
)
|
||||||
|
|
||||||
cmake_policy(SET CMP0072 NEW)
|
if (POLICY CMP0072)
|
||||||
|
cmake_policy(SET CMP0072 NEW)
|
||||||
|
endif()
|
||||||
|
|
||||||
find_package(OpenGL REQUIRED)
|
find_package(OpenGL REQUIRED)
|
||||||
include_directories(${OPENGL_INCLUDE_DIR})
|
include_directories(${OPENGL_INCLUDE_DIR})
|
||||||
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES})
|
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES})
|
||||||
|
|||||||
Reference in New Issue
Block a user