From 866cf33cd4895462b89dcdc2dfdce3780094b0f0 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 3 Jun 2022 22:32:45 -0400 Subject: [PATCH] build: Set CMAKE_INSTALL_PREFIX (for deployment) Run 'cmake --build --target install' to create a self- contained executable sparkd in the 'install' dir at the root of the repo --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index f1f736861..f582472a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -48,6 +48,7 @@ else() # make sparkd look for libspark.so in its directory set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE) set(CMAKE_INSTALL_RPATH ".") + set(CMAKE_INSTALL_PREFIX "${CMAKE_SOURCE_DIR}/install/${CMAKE_BUILD_TYPE}/sparkd") # flags set(