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 # setup the install rules
if(NOT SFML_BUILD_FRAMEWORKS) if(NOT SFML_BUILD_FRAMEWORKS)
install(DIRECTORY include install(DIRECTORY include/
DESTINATION . DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
COMPONENT devel COMPONENT devel
FILES_MATCHING PATTERN "*.hpp" PATTERN "*.inl") FILES_MATCHING PATTERN "*.hpp" PATTERN "*.inl")
if(SFML_GENERATE_PDB) if(SFML_GENERATE_PDB)
install(DIRECTORY ${PROJECT_BINARY_DIR}/lib install(DIRECTORY ${PROJECT_BINARY_DIR}/lib/
DESTINATION . DESTINATION ${CMAKE_INSTALL_LIBDIR}
COMPONENT devel COMPONENT devel
FILES_MATCHING PATTERN "*.pdb") FILES_MATCHING PATTERN "*.pdb")
endif() endif()