Set CMAKE_INSTALL_PREFIX to /opt in the CMakeLists.txt file.

This commit is contained in:
Username404-59 2021-03-11 20:20:51 +01:00
parent f00e722dc0
commit 0c7c890a21
Signed by: Username404-59
GPG Key ID: 7AB361FBB257A5D1
1 changed files with 2 additions and 1 deletions

View File

@ -54,7 +54,8 @@ target_compile_definitions(ybcon PRIVATE YBCON_VERSION="${PROJECT_VERSION}")
# lpkg = linux package, wpkg = windows package # lpkg = linux package, wpkg = windows package
if (UNIX AND NOT MINGW) if (UNIX AND NOT MINGW)
include(GNUInstallDirs) 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_PACKAGE_FILE_NAME "${CPACK_PACKAGE_FILE_NAME}_lpkg")
set(CPACK_SYSTEM_NAME "Linux-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}") set(CPACK_SYSTEM_NAME "Linux-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")
set(CPACK_TOPLEVEL_TAG "Linux-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}") set(CPACK_TOPLEVEL_TAG "Linux-${CMAKE_CXX_COMPILER_ARCHITECTURE_ID}")