mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-05-12 19:39:32 +00:00
Windows compilation support (fix missing -lws2_32)
Provide `-DWINDOWS=1` to cmake to include necessary dependency ws2_32 in the build process.
This commit is contained in:
parent
4ef839c3d8
commit
569dc591aa
@ -138,6 +138,11 @@ else()
|
||||
add_library(LIB_LIEF_SHARED SHARED EXCLUDE_FROM_ALL ${LIBLIEF_SOURCE_FILES} ${LIEF_INCLUDE_FILES}) # Shared one
|
||||
endif()
|
||||
|
||||
|
||||
if(WINDOWS)
|
||||
target_link_libraries(LIB_LIEF_SHARED ws2_32)
|
||||
endif()
|
||||
|
||||
target_compile_definitions(LIB_LIEF_STATIC PRIVATE -DLIEF_STATIC)
|
||||
target_compile_definitions(LIB_LIEF_SHARED PRIVATE -DLIEF_EXPORTS)
|
||||
if (LIEF_SUPPORT_CXX14)
|
||||
|
Loading…
x
Reference in New Issue
Block a user