Mercurial > hg > orthanc
comparison Resources/CMake/BoostConfiguration.cmake @ 2063:ed383e7a6753
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Jul 2016 15:50:11 +0200 |
parents | 54417b0831c4 |
children | 272094362301 |
comparison
equal
deleted
inserted
replaced
2062:40ffd0e8676a | 2063:ed383e7a6753 |
---|---|
55 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR | 55 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR |
56 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR | 56 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR |
57 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR | 57 ${CMAKE_SYSTEM_NAME} STREQUAL "kFreeBSD" OR |
58 ${CMAKE_SYSTEM_NAME} STREQUAL "PNaCl") | 58 ${CMAKE_SYSTEM_NAME} STREQUAL "PNaCl") |
59 list(APPEND BOOST_SOURCES | 59 list(APPEND BOOST_SOURCES |
60 ${BOOST_SOURCES_DIR}/libs/atomic/src/lockpool.cpp | |
60 ${BOOST_SOURCES_DIR}/libs/thread/src/pthread/once.cpp | 61 ${BOOST_SOURCES_DIR}/libs/thread/src/pthread/once.cpp |
61 ${BOOST_SOURCES_DIR}/libs/thread/src/pthread/thread.cpp | 62 ${BOOST_SOURCES_DIR}/libs/thread/src/pthread/thread.cpp |
62 ) | 63 ) |
63 add_definitions( | 64 add_definitions( |
64 -DBOOST_LOCALE_WITH_ICONV=1 | 65 -DBOOST_LOCALE_WITH_ICONV=1 |
107 aux_source_directory(${BOOST_SOURCES_DIR}/libs/regex/src BOOST_REGEX_SOURCES) | 108 aux_source_directory(${BOOST_SOURCES_DIR}/libs/regex/src BOOST_REGEX_SOURCES) |
108 | 109 |
109 list(APPEND BOOST_SOURCES | 110 list(APPEND BOOST_SOURCES |
110 ${BOOST_REGEX_SOURCES} | 111 ${BOOST_REGEX_SOURCES} |
111 ${BOOST_SOURCES_DIR}/libs/date_time/src/gregorian/greg_month.cpp | 112 ${BOOST_SOURCES_DIR}/libs/date_time/src/gregorian/greg_month.cpp |
112 ${BOOST_FILESYSTEM_SOURCES_DIR}/codecvt_error_category.cpp | |
113 ${BOOST_FILESYSTEM_SOURCES_DIR}/operations.cpp | |
114 ${BOOST_FILESYSTEM_SOURCES_DIR}/path.cpp | |
115 ${BOOST_FILESYSTEM_SOURCES_DIR}/path_traits.cpp | |
116 ${BOOST_SOURCES_DIR}/libs/locale/src/encoding/codepage.cpp | 113 ${BOOST_SOURCES_DIR}/libs/locale/src/encoding/codepage.cpp |
117 ${BOOST_SOURCES_DIR}/libs/system/src/error_code.cpp | 114 ${BOOST_SOURCES_DIR}/libs/system/src/error_code.cpp |
118 ) | 115 ) |
116 | |
117 if (${CMAKE_SYSTEM_NAME} STREQUAL "PNaCl") | |
118 # boost::filesystem is not available on PNaCl | |
119 add_definitions( | |
120 -DBOOST_HAS_FILESYSTEM_V3=0 | |
121 -D__INTEGRITY=1 | |
122 -DORTHANC_SANDBOXED=1 | |
123 ) | |
124 else() | |
125 add_definitions(-DBOOST_HAS_FILESYSTEM_V3=1) | |
126 list(APPEND BOOST_SOURCES | |
127 ${BOOST_FILESYSTEM_SOURCES_DIR}/codecvt_error_category.cpp | |
128 ${BOOST_FILESYSTEM_SOURCES_DIR}/operations.cpp | |
129 ${BOOST_FILESYSTEM_SOURCES_DIR}/path.cpp | |
130 ${BOOST_FILESYSTEM_SOURCES_DIR}/path_traits.cpp | |
131 ) | |
132 endif() | |
119 | 133 |
120 if (USE_BOOST_LOCALE_BACKENDS) | 134 if (USE_BOOST_LOCALE_BACKENDS) |
121 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR | 135 if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux" OR |
122 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR | 136 ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin" OR |
123 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR | 137 ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" OR |
176 -DBOOST_PROGRAM_OPTIONS_NO_LIB | 190 -DBOOST_PROGRAM_OPTIONS_NO_LIB |
177 -DBOOST_REGEX_NO_LIB | 191 -DBOOST_REGEX_NO_LIB |
178 -DBOOST_SYSTEM_NO_LIB | 192 -DBOOST_SYSTEM_NO_LIB |
179 -DBOOST_LOCALE_NO_LIB | 193 -DBOOST_LOCALE_NO_LIB |
180 -DBOOST_HAS_LOCALE=1 | 194 -DBOOST_HAS_LOCALE=1 |
181 -DBOOST_HAS_FILESYSTEM_V3=1 | |
182 ) | 195 ) |
183 | 196 |
184 if (CMAKE_COMPILER_IS_GNUCXX) | 197 if (CMAKE_COMPILER_IS_GNUCXX) |
185 add_definitions(-isystem ${BOOST_SOURCES_DIR}) | 198 add_definitions(-isystem ${BOOST_SOURCES_DIR}) |
186 endif() | 199 endif() |