Re-enable INSTALL_SD_CMAKE() but only for in-source builds,as it installs to the source directory

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@7551 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 71b4fe2e292910a5900a5f733e7b2f64b09cb60f
Former-commit-id: a4848ff058c100cfead5fdec55e96d48269f50b5
This commit is contained in:
beaglejoe 2021-06-06 13:38:54 +00:00
parent 7d2fbd1602
commit 16d432a04a

View file

@ -206,9 +206,10 @@ ENDIF(MSVC)
# Useful for using an installation of SD as a robot development framework without building it.
IF(LINUX)
# Only do for an in source tree build as INSTALL_SD_CMAKE() doesn't seem to use CMAKE_INSTALL_PREFIX
IF("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
INSTALL_SD_CMAKE()
ENDIF(LINUX)
ENDIF("${PROJECT_SOURCE_DIR}" STREQUAL "${PROJECT_BINARY_DIR}")
# Must be the last ADD_SUBDIRECTORY for FIXUP_BUNDLE to work
ADD_SUBDIRECTORY(packaging)