From bc3d1185b86fd7b858bf72a4c03cf67ca774e57f Mon Sep 17 00:00:00 2001 From: Karol Lewandowski Date: Thu, 2 Feb 2023 12:03:06 +0100 Subject: [PATCH] cmake: Explicitly set install prefix to /usr Change-Id: Ia5f6949128eb7ccd95220a8e59cfac424f7c750c --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 453d410..e864599 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -38,6 +38,7 @@ ENDIF("${ARCH}" STREQUAL "arm") ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--as-needed -pie") +SET(CMAKE_INSTALL_PREFIX "/usr") # set this to ON if you want to build on host OPTION(DEFINE_HOST_BUILD OFF) @@ -45,4 +46,4 @@ IF(DEFINE_HOST_BUILD) INCLUDE(CMakeLists.host-build) ELSE() INCLUDE(CMakeLists.target-build) -ENDIF() \ No newline at end of file +ENDIF() -- 2.34.1