From 2f59dadb0c4e8d0b95076daf8ac4fd3053bbdf58 Mon Sep 17 00:00:00 2001 From: Zbigniew Mandziejewicz Date: Thu, 8 Oct 2015 00:22:37 +0800 Subject: [PATCH] Remove 3.0 dependendent target export in build tree --- CMakeLists.txt | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index c73783521..0092d6a1a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -512,11 +512,9 @@ configure_file( glfw3Config.cmake COPYONLY) -if(NOT CMAKE_VERSION VERSION_LESS 3.0) - export( - EXPORT glfwTargets - FILE "${GLFW_BINARY_DIR}/glfw3Targets.cmake") -endif() +export( + TARGETS glfw + FILE glfw3Targets.cmake) if (GLFW_BUILD_DOCS) configure_file(docs/Doxyfile.in