Browse Source

CMake: Disable threads and enable UTF-8 for Boost.System

master
Daniel Scharrer 1 year ago
parent
commit
045f72a73d
  1. 4
      CMakeLists.txt

4
CMakeLists.txt

@ -187,6 +187,10 @@ if(NOT Boost_VERSION_MACRO)
# CMP0093 changed Boost_VERSION to x.y.z format and provide the old format in Boost_VERSION_MACRO
set(Boost_VERSION_MACRO ${Boost_VERSION})
endif()
add_definitions(-DBOOST_SYSTEM_DISABLE_THREADS)
if(win32)
add_definitions(-DBOOST_SYSTEM_USE_UTF8)
endif()
has_static_libs(Boost Boost_LIBRARIES)
if(Boost_HAS_STATIC_LIBS)

Loading…
Cancel
Save