CMake config file cleanup.

This commit is contained in:
Camilla Berglund
2013-05-14 01:03:40 +02:00
parent d82f068f7e
commit 64630af362
2 changed files with 8 additions and 5 deletions
+2 -1
View File
@@ -399,8 +399,9 @@ install(FILES ${GLFW_BINARY_DIR}/src/glfwConfig.cmake
${GLFW_BINARY_DIR}/src/glfwConfigVersion.cmake
DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
# Install the export set for use with the install-tree
if (UNIX)
install(EXPORT glfwTargets DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
endif()
#--------------------------------------------------------------------
# Create and install pkg-config file on supported platforms
+2
View File
@@ -1,3 +1,4 @@
set(PACKAGE_VERSION "@GLFW_VERSION_FULL@")
if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@GLFW_VERSION_MAJOR@")
@@ -8,3 +9,4 @@ if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@GLFW_VERSION_MAJOR@")
else()
set(PACKAGE_VERSION_COMPATIBLE FALSE)
endif()