From 60121fb0a9d2fda6cf7ad690ff94b027021b1ad5 Mon Sep 17 00:00:00 2001 From: Tamas Kenez Date: Sat, 3 Oct 2015 12:11:28 +0200 Subject: [PATCH] cmake: use export(EXPORT ..) only if CMake >= 3.0 --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index cef157ac9..c73783521 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -512,9 +512,11 @@ configure_file( glfw3Config.cmake COPYONLY) -export( - EXPORT glfwTargets - FILE "${GLFW_BINARY_DIR}/glfw3Targets.cmake") +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