From 5e880a251111992e1e51c4c58d46850ed59c294d Mon Sep 17 00:00:00 2001 From: Chris Thrasher Date: Sat, 27 Aug 2022 21:39:18 -0600 Subject: [PATCH] Fix directory install rules -- Installing: /Users/runner/work/SFML/SFML/install/./include -- Installing: /Users/runner/work/SFML/SFML/install/./include/SFML becomes -- Installing: /Users/runner/work/SFML/SFML/install/include -- Installing: /Users/runner/work/SFML/SFML/install/include/SFML Likewise for installing lib/ --- CMakeLists.txt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7632e527..b69e33b1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -294,14 +294,14 @@ endif() # setup the install rules if(NOT SFML_BUILD_FRAMEWORKS) - install(DIRECTORY include - DESTINATION . + install(DIRECTORY include/ + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} COMPONENT devel FILES_MATCHING PATTERN "*.hpp" PATTERN "*.inl") if(SFML_GENERATE_PDB) - install(DIRECTORY ${PROJECT_BINARY_DIR}/lib - DESTINATION . + install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/ + DESTINATION ${CMAKE_INSTALL_LIBDIR} COMPONENT devel FILES_MATCHING PATTERN "*.pdb") endif()