summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@oath.com>2017-09-18 13:37:07 +0000
committerTor Egge <Tor.Egge@oath.com>2017-09-18 13:37:07 +0000
commit2cfe56241063e2d3684f142987eaa2f3254336a0 (patch)
tree3360fe537d3f312df5c404a45ec75737d144ac5e /CMakeLists.txt
parent977c1fb4a2d45820e44ccedb848138bf38150ac1 (diff)
Try to run post_install.sh later by placing the install statement in
the last subdirectory added.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 36d29ece0f1..a0fadafaa63 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -67,12 +67,12 @@ add_subdirectory(vespalib)
add_subdirectory(vespalog)
add_subdirectory(vespamalloc)
add_subdirectory(vsm)
+# Note: Change when cmake gets proper post-install support.
+# Post installation steps are run from dist subdirectory which needs to be the last add_subdirectory(...) call in this file.
+add_subdirectory(dist)
# Create module targets with name ${MODULE}+module depending on every target defined within that module
__create_module_targets(TARGETS "module")
# Create module targets with name ${MODULE}+test depending on every test target defined within that module
__create_module_targets(TEST_TARGETS "test")
-
-# Post installation steps. Need to be the last install(...) call in this file.
-install(CODE "execute_process(COMMAND ${CMAKE_CURRENT_LIST_DIR}/dist/post_install.sh ${CMAKE_INSTALL_PREFIX})")