Skip to content

Commit 279f794

Browse files
authored
Merge pull request #656 from ProGTX/peter/fix-install
[CMake] Don't use CMAKE_SOURCE_DIR during install
2 parents 1006a9c + d2cd024 commit 279f794

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,10 +599,10 @@ endif()
599599
# --------------------------------------------------------------------------- #
600600
# Configure make install/uninstall and packages
601601
# --------------------------------------------------------------------------- #
602-
install(FILES ${CMAKE_SOURCE_DIR}/LICENSE.TXT
602+
install(FILES ${PROJECT_SOURCE_DIR}/LICENSE.TXT
603603
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/")
604604
install(
605-
FILES ${CMAKE_SOURCE_DIR}/licensing/third-party-programs.txt
605+
FILES ${PROJECT_SOURCE_DIR}/licensing/third-party-programs.txt
606606
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/doc/${PROJECT_NAME}/licensing/")
607607

608608
install(DIRECTORY examples DESTINATION "${CMAKE_INSTALL_DOCDIR}")

0 commit comments

Comments
 (0)