summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlijia <[email protected]>2021-10-29 10:28:22 +0800
committerlijia <[email protected]>2021-10-29 10:28:22 +0800
commit004a1d3b00f7bae54b30e042cee572724f7ef368 (patch)
treec66588bf813e7e3f424ef407294ac8cda529a115 /src
parent86ccc7b43ac3838b897204c985cd996ece7b37b0 (diff)
修复CI编译错误.v1.0.6
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 4f7e250..dfab3d0 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -17,9 +17,11 @@ add_definitions(-DSAPP_V4=1)
add_definitions(-fPIC)
add_definitions(-std=c++11)
-add_library(${lib_name} SHARED MESA_jump_layer.cpp)
+set(SRC MESA_jump_layer.cpp)
+
+add_library(${lib_name} SHARED ${SRC})
target_link_libraries(${lib_name} m)
-install(FILES ${CMAKE_BINARY_DIR}/src/libMESA_jump_layer.so DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARY)
+install(FILES ${CMAKE_BINARY_DIR}/src/libMESA_jump_layer.so DESTINATION ${CMAKE_INSTALL_PREFIX}/lib COMPONENT LIBRARIES)