File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.8...3.13 )
1+ cmake_minimum_required (VERSION 3.9 ) # CMP0069 NEW
2+ include (CheckIPOSupported )
3+ check_ipo_supported (RESULT ltoresult )
4+ if (ltoresult)
5+ set (CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE )
6+ endif ()
7+
28set (CMAKE_CXX_STANDARD 17)
39set (CMAKE_CXX_STANDARD_REQUIRED ON )
410set (CMAKE_MACOSX_RPATH OFF )
@@ -20,14 +26,12 @@ option(SIMDJSON_BUILD_STATIC "Build a static library" OFF) # turning it on disab
2026else ()
2127option (SIMDJSON_BUILD_STATIC "Build a static library" ON ) # turning it on disables the production of a dynamic library
2228endif ()
23- option (SIMDJSON_BUILD_LTO "Build library with Link Time Optimization" OFF )
2429option (SIMDJSON_SANITIZE "Sanitize addresses" OFF )
2530
2631set (CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR } /tools/cmake" )
2732
2833find_package (CTargets )
2934find_package (Options )
30- find_package (LTO )
3135
3236install (DIRECTORY include/${SIMDJSON_LIB_NAME} DESTINATION include)
3337set (TEST_DATA_DIR "${CMAKE_CURRENT_SOURCE_DIR } /jsonchecker/" )
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments