cmake: use export(EXPORT ..) only if CMake >= 3.0

This commit is contained in:
Tamas Kenez 2015-10-03 12:11:28 +02:00 committed by Zbigniew Mandziejewicz
parent 38c91bc938
commit 60121fb0a9

View File

@ -512,9 +512,11 @@ configure_file(
glfw3Config.cmake
COPYONLY)
if(NOT CMAKE_VERSION VERSION_LESS 3.0)
export(
EXPORT glfwTargets
FILE "${GLFW_BINARY_DIR}/glfw3Targets.cmake")
endif()
if (GLFW_BUILD_DOCS)
configure_file(docs/Doxyfile.in