summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-09-03 10:38:40 +0800
committeryangwei <[email protected]>2024-09-03 10:38:40 +0800
commitcac9187808a80205658589c0e432a3e2bafd78e8 (patch)
tree5f217dab05bedf4fe8c73b43fbf41990832f340e
parent1c796feca56be18d745ccb838c95e834f4dfd793 (diff)
🔧 build(./src/entry/cmake): enable IPOv4.3.65v4.3.64
-rw-r--r--src/entry/CMakeLists.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/entry/CMakeLists.txt b/src/entry/CMakeLists.txt
index dcaa8ab..2d32989 100644
--- a/src/entry/CMakeLists.txt
+++ b/src/entry/CMakeLists.txt
@@ -21,10 +21,12 @@ if(HASP_ENABLED)
include_directories(/opt/tsg/hasp-tools/include/)
endif()
+
add_executable(sapp sapp_main.c)
target_compile_options(sapp PUBLIC ${MEM_POOL_DEFINITIONS})
target_include_directories(sapp PRIVATE ${SYSTEMD_INCLUDE_DIRS})
+set_target_properties(sapp ${SAPP_MODULES} PROPERTIES INTERPROCEDURAL_OPTIMIZATION TRUE)
if(HASP_ENABLED STREQUAL "ON")
find_library(HASP_TOOLS_LIB NAMES hasp-tools PATHS /opt/tsg/hasp-tools/lib)