Fix hardcoded runtime destination in CMake install

Closes #1883.
Closes #1884.

(cherry picked from commit e3f916808d)
This commit is contained in:
Konstantin Podsvirov 2021-04-15 18:54:45 +03:00 committed by Camilla Löwy
parent 5dd6716ee9
commit 9ef9b1361a

View File

@ -179,7 +179,7 @@ endif()
if (GLFW_INSTALL)
install(TARGETS glfw
EXPORT glfwTargets
RUNTIME DESTINATION "bin"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}")
endif()