Skip to content

Commit

Permalink
fix CMakeLists.txt bug
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Kirhhoff committed Jun 25, 2023
1 parent ca4b135 commit 70a3ea3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ endif()
target_link_libraries(syscall_intercept_shared
PRIVATE ${CMAKE_DL_LIBS}
"-Wl,--push-state,${CAPSTONE_LINK_MODE} -lcapstone -Wl,--pop-state"
"-Wl,--version-script=${CMAKE_SOURCE_DIR}/version.map")
"-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/version.map")

target_link_libraries(syscall_intercept_static
INTERFACE ${CMAKE_DL_LIBS} ${capstone_LIBRARIES})
Expand Down

0 comments on commit 70a3ea3

Please sign in to comment.