mirror of
https://github.com/vtil-project/VTIL-Core
synced 2026-08-17 08:23:03 -04:00
Merge pull request #45 from mrexodia/lunix
Properly link to pthread on lunix
This commit is contained in:
commit
33d2ca6004
1 changed files with 5 additions and 1 deletions
|
|
@ -13,7 +13,7 @@ source_group(TREE ${PROJECT_SOURCE_DIR} FILES ${SOURCES} ${INCLUDES})
|
|||
target_include_directories(${PROJECT_NAME} PUBLIC includes)
|
||||
|
||||
# Common needs Capstone & Keystone
|
||||
target_link_libraries(${PROJECT_NAME} capstone-static keystone)
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC capstone-static keystone)
|
||||
|
||||
# Put all VTIL-specific compiler flags here
|
||||
# Linking (indirectly) to VTIL-Common will automatically propagate these flags
|
||||
|
|
@ -48,3 +48,7 @@ if(MSVC)
|
|||
# -fpermissive MSVC equivalent
|
||||
target_compile_options(${PROJECT_NAME} PUBLIC /permissive-)
|
||||
endif()
|
||||
|
||||
# Include Threads
|
||||
find_package(Threads REQUIRED)
|
||||
target_link_libraries(${PROJECT_NAME} PUBLIC ${CMAKE_THREAD_LIBS_INIT})
|
||||
Loading…
Add table
Add a link
Reference in a new issue