Skip to content

Commit

Permalink
Fixed Windows build for shared (DLL) libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
fpagliughi committed Jan 17, 2023
1 parent 27ffc22 commit f1ffec4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,6 @@ option(SOCKPP_BUILD_TESTS "Build unit tests" OFF)
option(SOCKPP_BUILD_DOCUMENTATION "Create Doxygen reference documentation" OFF)
option(SOCKPP_BUILD_CAN "Build the Linux SocketCAN components" OFF)

if(WIN32)
include(GenerateExportHeader)
endif()

# --- Setting naming variables ---

set(SOCKPP_SHARED_LIBRARY sockpp)
Expand All @@ -78,11 +74,10 @@ configure_file(

add_subdirectory(src)

# --- Header Locations ---

# --- System libraries ---

if(WIN32)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(LIBS_SYSTEM ws2_32)
endif()

Expand Down

0 comments on commit f1ffec4

Please sign in to comment.