Skip to content

Commit 4b60250

Browse files
committed
jenkins: trying to fix undefined reference to __imp_select
1 parent 9c9f832 commit 4b60250

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CMakeLists.txt

+6-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ endif(Boost_INCLUDE_DIRS)
1717

1818
FIND_PACKAGE(Boost COMPONENTS program_options REQUIRED)
1919

20-
FILE(GLOB SRC "${CMAKE_SOURCE_DIR}/src/*/*.cpp")
20+
FILE(GLOB osm2pgrouting_lib_SOURCES "${CMAKE_SOURCE_DIR}/src/*/*.cpp")
2121

2222
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_FILE_OFFSET_BITS=64 -std=c++0x")
2323
set (CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -Wall -Wconversion -pedantic -Wextra -frounding-math -Wno-deprecated -fmax-errors=10")
@@ -40,7 +40,7 @@ INCLUDE_DIRECTORIES(src
4040
${OSM2PGROUTING_INCLUDE_DIRS}
4141
)
4242

43-
ADD_EXECUTABLE(osm2pgrouting ${SRC})
43+
ADD_EXECUTABLE(osm2pgrouting ${osm2pgrouting_lib_SOURCES})
4444

4545
TARGET_LINK_LIBRARIES(osm2pgrouting
4646
${LIBPQXX_LIBRARIES}
@@ -53,6 +53,10 @@ INSTALL(TARGETS osm2pgrouting
5353
RUNTIME DESTINATION "/usr/bin"
5454
)
5555

56+
if(WIN32)
57+
target_link_libraries(osm2pgrouting wsock32 ws2_32)
58+
endif()
59+
5660
INSTALL(FILES
5761
"${CMAKE_SOURCE_DIR}/COPYING"
5862
"${CMAKE_SOURCE_DIR}/Readme.md"

0 commit comments

Comments
 (0)