Mercurial > hg > orthanc
comparison Resources/CMake/BoostConfiguration.cmake @ 4026:05a363186da6
ORTHANC_BUILDING_FRAMEWORK_LIBRARY, Orthanc::InitializeFramework()
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Jun 2020 16:26:57 +0200 |
parents | 0ba17d2bcdc9 |
children |
comparison
equal
deleted
inserted
replaced
4019:bf35c4628777 | 4026:05a363186da6 |
---|---|
106 | 106 |
107 include_directories( | 107 include_directories( |
108 BEFORE ${BOOST_SOURCES_DIR} | 108 BEFORE ${BOOST_SOURCES_DIR} |
109 ) | 109 ) |
110 | 110 |
111 if (ORTHANC_BUILDING_FRAMEWORK_LIBRARY) | |
112 add_definitions( | |
113 # Packaging Boost inside the Orthanc Framework DLL | |
114 -DBOOST_ALL_DYN_LINK | |
115 -DBOOST_THREAD_BUILD_DLL | |
116 #-DBOOST_REGEX_BUILD_DLL | |
117 ) | |
118 else() | |
119 add_definitions( | |
120 # Static build of Boost (this was the only possibility in | |
121 # Orthanc <= 1.7.1) | |
122 -DBOOST_ALL_NO_LIB | |
123 -DBOOST_ALL_NOLIB | |
124 -DBOOST_DATE_TIME_NO_LIB | |
125 -DBOOST_THREAD_BUILD_LIB | |
126 -DBOOST_PROGRAM_OPTIONS_NO_LIB | |
127 -DBOOST_REGEX_NO_LIB | |
128 -DBOOST_SYSTEM_NO_LIB | |
129 -DBOOST_LOCALE_NO_LIB | |
130 ) | |
131 endif() | |
132 | |
111 add_definitions( | 133 add_definitions( |
112 # Static build of Boost | |
113 -DBOOST_ALL_NO_LIB | |
114 -DBOOST_ALL_NOLIB | |
115 -DBOOST_DATE_TIME_NO_LIB | |
116 -DBOOST_THREAD_BUILD_LIB | |
117 -DBOOST_PROGRAM_OPTIONS_NO_LIB | |
118 -DBOOST_REGEX_NO_LIB | |
119 -DBOOST_SYSTEM_NO_LIB | |
120 -DBOOST_LOCALE_NO_LIB | |
121 | |
122 # In static builds, explicitly prevent Boost from using the system | 134 # In static builds, explicitly prevent Boost from using the system |
123 # locale in lexical casts. This is notably important if | 135 # locale in lexical casts. This is notably important if |
124 # "boost::lexical_cast<double>()" is applied to strings containing | 136 # "boost::lexical_cast<double>()" is applied to strings containing |
125 # "," instead of "." as decimal separators. Check out function | 137 # "," instead of "." as decimal separators. Check out function |
126 # "OrthancStone::LinearAlgebra::ParseVector()". | 138 # "OrthancStone::LinearAlgebra::ParseVector()". |