Skip to content

Commit

Permalink
Windows linking.
Browse files Browse the repository at this point in the history
  • Loading branch information
connormanning committed Jul 3, 2018
1 parent 5a80605 commit facd525
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ find_package(PDAL ${PDAL_FIND_VERSION} REQUIRED CONFIG NO_POLICY_SCOPE)
set(CMAKE_THREAD_PREFER_PTHREAD TRUE)
find_package(Threads REQUIRED)
find_package(LazPerf REQUIRED)
find_library(WS2_32_LIBRARY ws2_32)
if (NOT WIN32)
find_package(Backtrace)
if (${Backtrace_FOUND})
Expand Down Expand Up @@ -136,6 +137,7 @@ set(OBJS

if (MSVC)
add_library(entwine STATIC ${OBJS})
target_link_libraries(entwine wsock32 ws2_32)
else()
add_library(entwine SHARED ${OBJS})
endif()
Expand Down

0 comments on commit facd525

Please sign in to comment.