Skip to content
This repository was archived by the owner on Jan 6, 2025. It is now read-only.

Commit 70a3ea3

Browse files
committed
fix CMakeLists.txt bug
Lookup path of version map: ${CMAKE_SOURCE_DIR} -> ${CMAKE_CURRRENT_SOURCE_DIR} This leads to version map lookup fail if syscall_intercept is embedded within another cmake-based project.
1 parent ca4b135 commit 70a3ea3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ endif()
148148
target_link_libraries(syscall_intercept_shared
149149
PRIVATE ${CMAKE_DL_LIBS}
150150
"-Wl,--push-state,${CAPSTONE_LINK_MODE} -lcapstone -Wl,--pop-state"
151-
"-Wl,--version-script=${CMAKE_SOURCE_DIR}/version.map")
151+
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.map")
152152

153153
target_link_libraries(syscall_intercept_static
154154
INTERFACE ${CMAKE_DL_LIBS} ${capstone_LIBRARIES})

0 commit comments

Comments
 (0)