Skip to content

Commit

Permalink
Fix linux build
Browse files Browse the repository at this point in the history
  • Loading branch information
cfnptr committed Oct 17, 2024
1 parent 7210714 commit 7f7308c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ target_include_directories(nets-static PUBLIC ${NETS_INCLUDE_DIRECTORIES})

if(NETS_BUILD_SHARED)
add_library(nets-shared SHARED ${NETS_SOURCES})
set_target_properties(nets-shared PROPERTIES
OUTPUT_NAME "nets" WINDOWS_EXPORT_ALL_SYMBOLS ON)
set_target_properties(nets-shared PROPERTIES OUTPUT_NAME "nets"
WINDOWS_EXPORT_ALL_SYMBOLS ON POSITION_INDEPENDENT_CODE ON)
target_link_libraries(nets-shared PUBLIC ${NETS_LINK_LIBRARIES})
target_include_directories(nets-shared PUBLIC ${NETS_INCLUDE_DIRECTORIES})
endif()
Expand Down

0 comments on commit 7f7308c

Please sign in to comment.