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/
This commit is contained in:
Chris Thrasher 2022-08-27 21:39:18 -06:00 committed by Lukas Dürrenberger
parent fc0bd0bfc8
commit 5e880a2511

View File

@ -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()