diff options
author | clyne <clyne@bitgloo.com> | 2020-12-31 12:13:26 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-31 12:13:26 -0500 |
commit | 58cdbb6a1bdb2773077741f14c4ab4c7faabb52e (patch) | |
tree | 65fa4bba1b41d721797ee11e1523d68a0e978e94 /CMakeLists.txt | |
parent | 2028b12fda38420b91b27781cce1a2495f7c0b54 (diff) | |
parent | 334dfb7027496741f678ad078202dfcc7d0d0078 (diff) |
Merge pull request #4 from friendlyanon/master
Include CPack only if top level project
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 277bb63..f89b160 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,7 +28,6 @@ target_compile_features(consteval_huffman INTERFACE cxx_std_20) # ---- Install ---- -include(CPack) include(GNUInstallDirs) include(CMakePackageConfigHelpers) @@ -61,3 +60,7 @@ install(EXPORT consteval_huffmanTargets NAMESPACE tcsullivan:: DESTINATION "${consteval_huffman_install_cmakedir}" COMPONENT consteval_huffman_Package) + +if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) + include(CPack) +endif() |