Skip to content

Commit a12a44c

Browse files
author
Karl Herbig
committed
make the installation of codelite templates optional with cmake option INSTALL_TEMPLATES default OFF
1 parent 7d8b648 commit a12a44c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

dev/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
cmake_minimum_required(VERSION 2.8.11)
1919

20+
option(INSTALL_TEMPLATES "Install codelite project templates to /usr/share/codelite" OFF)
21+
22+
if(INSTALL_TEMPLATES)
2023
# set packaging dir
2124
if(NOT CPACK_PACKAGE_DIRECTORY)
2225
set(CPACK_PACKAGE_DIRECTORY ${CMAKE_BINARY_DIR}/packages)
@@ -37,3 +40,4 @@ install (DIRECTORY codelite/unit-test-modbuspp
3740
DIRECTORY_PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ WORLD_EXECUTE WORLD_READ
3841
COMPONENT dev
3942
)
43+
endif(INSTALL_TEMPLATES)

0 commit comments

Comments
 (0)