mirror of
https://github.com/kakwa/uts-server
synced 2024-11-11 12:08:54 +01:00
linking libpthread is necessary everywhere if bundling civetweb
This commit is contained in:
parent
114a7f28ad
commit
1e5f11599d
@ -63,21 +63,20 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|
||||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
IF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
set(SED_FREEBSD "*.c.bak")
|
set(SED_FREEBSD "*.c.bak")
|
||||||
find_package(argp REQUIRED)
|
find_package(argp REQUIRED)
|
||||||
add_definitions(-DBSD)
|
add_definitions(-DBSD)
|
||||||
set (CMAKE_C_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -lpthread -lrt")
|
set (CMAKE_C_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -lrt")
|
||||||
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
|
||||||
|
|
||||||
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
IF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
||||||
find_package(argp REQUIRED)
|
find_package(argp REQUIRED)
|
||||||
add_definitions(-DBSD)
|
add_definitions(-DBSD)
|
||||||
set (CMAKE_C_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -lpthread")
|
|
||||||
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
ENDIF(${CMAKE_SYSTEM_NAME} MATCHES "OpenBSD")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if(BUNDLE_CIVETWEB)
|
if(BUNDLE_CIVETWEB)
|
||||||
ExternalProject_Add( civetweb
|
ExternalProject_Add( civetweb
|
||||||
GIT_REPOSITORY https://github.com/kakwa/civetweb
|
GIT_REPOSITORY https://github.com/kakwa/civetweb
|
||||||
@ -99,6 +98,7 @@ if(BUNDLE_CIVETWEB)
|
|||||||
)
|
)
|
||||||
set(LIBCIVETWEB_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/vendor/usr/include")
|
set(LIBCIVETWEB_INCLUDE_DIR "${CMAKE_CURRENT_SOURCE_DIR}/vendor/usr/include")
|
||||||
set(LIBCIVETWEB_LIBRARIES "${CMAKE_CURRENT_SOURCE_DIR}/vendor/usr/lib/libcivetweb.a")
|
set(LIBCIVETWEB_LIBRARIES "${CMAKE_CURRENT_SOURCE_DIR}/vendor/usr/lib/libcivetweb.a")
|
||||||
|
set (CMAKE_C_LINK_EXECUTABLE "${CMAKE_CXX_LINK_EXECUTABLE} -lpthread")
|
||||||
else(BUNDLE_CIVETWEB)
|
else(BUNDLE_CIVETWEB)
|
||||||
find_package(libcivetweb REQUIRED)
|
find_package(libcivetweb REQUIRED)
|
||||||
endif(BUNDLE_CIVETWEB)
|
endif(BUNDLE_CIVETWEB)
|
||||||
|
Loading…
Reference in New Issue
Block a user