mirror of
https://github.com/boostorg/json.git
synced 2025-05-11 21:53:58 +00:00
* Add VS CMake integration config * add cmake 3.10.0 support * fix compiler and linker flags * disable verbose build output * added cmake policy * Fix source groups * Group folder related settings * Add support for the boost superproject and cmake 3.16 * Remove library headers from executable projects * Fix boost superproject compatibility
19 lines
626 B
CMake
19 lines
626 B
CMake
# C++ standard.
|
|
set(CMAKE_CXX_STANDARD 11 CACHE STRING "")
|
|
set(CMAKE_CXX_STANDARD_REQUIRED ON CACHE STRING "")
|
|
set(CMAKE_CXX_EXTENSIONS OFF CACHE STRING "")
|
|
|
|
# Static library linkage.
|
|
set(BUILD_SHARED_LIBS OFF CACHE STRING "")
|
|
add_definitions(-DBOOST_ALL_STATIC_LINK=1)
|
|
|
|
# Interprocedural optimization.
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELEASE ON CACHE STRING "")
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_MINSIZEREL ON CACHE STRING "")
|
|
set(CMAKE_INTERPROCEDURAL_OPTIMIZATION_RELWITHDEBINFO ON CACHE STRING "")
|
|
|
|
# Compiler definitions.
|
|
if(WIN32)
|
|
add_definitions(-D_WIN32_WINNT=0x0601 -D_CRT_SECURE_NO_WARNINGS)
|
|
endif()
|