mirror of
https://github.com/glfw/glfw.git
synced 2024-11-25 22:14:34 +00:00
CMake config file cleanup.
This commit is contained in:
parent
d82f068f7e
commit
64630af362
@ -397,10 +397,11 @@ configure_file(${GLFW_SOURCE_DIR}/src/glfwConfigVersion.cmake.in
|
|||||||
|
|
||||||
install(FILES ${GLFW_BINARY_DIR}/src/glfwConfig.cmake
|
install(FILES ${GLFW_BINARY_DIR}/src/glfwConfig.cmake
|
||||||
${GLFW_BINARY_DIR}/src/glfwConfigVersion.cmake
|
${GLFW_BINARY_DIR}/src/glfwConfigVersion.cmake
|
||||||
DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
|
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)
|
install(EXPORT glfwTargets DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
|
||||||
|
endif()
|
||||||
|
|
||||||
#--------------------------------------------------------------------
|
#--------------------------------------------------------------------
|
||||||
# Create and install pkg-config file on supported platforms
|
# Create and install pkg-config file on supported platforms
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
|
|
||||||
set(PACKAGE_VERSION "@GLFW_VERSION_FULL@")
|
set(PACKAGE_VERSION "@GLFW_VERSION_FULL@")
|
||||||
|
|
||||||
if("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@GLFW_VERSION_MAJOR@")
|
if ("${PACKAGE_FIND_VERSION_MAJOR}" EQUAL "@GLFW_VERSION_MAJOR@")
|
||||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||||
if("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @GLFW_VERSION_MINOR@)
|
if ("${PACKAGE_FIND_VERSION_MINOR}" EQUAL @GLFW_VERSION_MINOR@)
|
||||||
set(PACKAGE_VERSION_EXACT TRUE)
|
set(PACKAGE_VERSION_EXACT TRUE)
|
||||||
endif()
|
endif()
|
||||||
else()
|
else()
|
||||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user