From 0c7c890a21298d5da84b15c22aa2da2597e5d9e6 Mon Sep 17 00:00:00 2001 From: Username404-59 Date: Thu, 11 Mar 2021 20:20:51 +0100 Subject: [PATCH] Set CMAKE_INSTALL_PREFIX to /opt in the CMakeLists.txt file. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 43c97c6..76b93c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -54,7 +54,8 @@ target_compile_definitions(ybcon PRIVATE YBCON_VERSION="${PROJECT_VERSION}") # lpkg = linux package, wpkg = windows package if (UNIX AND NOT MINGW) include(GNUInstallDirs) - set(CPACK_PACKAGING_INSTALL_PREFIX "/opt") + set(CMAKE_INSTALL_PREFIX "/opt") + set(CPACK_PACKAGING_INSTALL_PREFIX "${CMAKE_INSTALL_PREFIX}") set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}_lpkg") set(CPACK_SYSTEM_NAME "Linux-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}") set(CPACK_TOPLEVEL_TAG "Linux-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")