diff --git a/cmake/win32_compiler_options.cmake b/cmake/win32_compiler_options.cmake index 86e20c2431..0a0b90ffad 100644 --- a/cmake/win32_compiler_options.cmake +++ b/cmake/win32_compiler_options.cmake @@ -49,6 +49,11 @@ function(pdal_target_compile_settings target) endif() endfunction() +# +# Windows htonl and similar are in winsock :( +# +set(WINSOCK_LIBRARY ws2_32) + set(CMAKE_INCLUDE_PATH "c:/OSGeo4W64/include;$ENV{CMAKE_INCLUDE_PATH}") set(CMAKE_LIBRARY_PATH "c:/OSGeo4W64/lib;$ENV{CMAKE_LIBRARY_PATH}") set(CMAKE_PREFIX_PATH "c:/OSGeo4W64/cmake;$ENV{CMAKE_LIBRARY_PATH}")