Mercurial > hg > orthanc
diff Resources/CMake/BoostConfiguration.cmake @ 2364:ae50eccd41b7
compilation succeeds on OpenBSD
author | jodogne |
---|---|
date | Mon, 21 Aug 2017 16:28:53 +0200 |
parents | 415450f11cc7 |
children | 26f3a346226f |
line wrap: on
line diff
--- a/Resources/CMake/BoostConfiguration.cmake Mon Aug 21 15:04:20 2017 +0200 +++ b/Resources/CMake/BoostConfiguration.cmake Mon Aug 21 16:28:53 2017 +0200 @@ -55,6 +55,7 @@ ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "PNaCl" OR ${CMAKE_SYSTEM_NAME} STREQUAL "NaCl32" OR ${CMAKE_SYSTEM_NAME} STREQUAL "NaCl64") @@ -76,6 +77,8 @@ add_definitions(-DBOOST_HAS_SCHED_YIELD=1) endif() + link_libraries(iconv) + elseif(${CMAKE_SYSTEM_NAME} STREQUAL "Windows") list(APPEND BOOST_SOURCES ${BOOST_SOURCES_DIR}/libs/thread/src/win32/tss_dll.cpp @@ -110,7 +113,8 @@ message(FATAL_ERROR "Support your platform here") endif() - if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") + if (${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD") list(APPEND BOOST_SOURCES ${BOOST_SOURCES_DIR}/libs/filesystem/src/utf8_codecvt_facet.cpp ) @@ -155,6 +159,7 @@ ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR + ${CMAKE_SYSTEM_NAME} STREQUAL "OpenBSD" OR ${CMAKE_SYSTEM_NAME} STREQUAL "PNaCl" OR ${CMAKE_SYSTEM_NAME} STREQUAL "NaCl32" OR ${CMAKE_SYSTEM_NAME} STREQUAL "NaCl64")