Changeset View
Changeset View
Standalone View
Standalone View
src/CMakeLists.txt
Show First 20 Lines • Show All 235 Lines • ▼ Show 20 Lines | if(USE_JEMALLOC) | ||||
if(ENABLE_SANITIZERS) | if(ENABLE_SANITIZERS) | ||||
message(WARNING "Jemalloc is incompatible with the sanitizers and has been disabled.") | message(WARNING "Jemalloc is incompatible with the sanitizers and has been disabled.") | ||||
else() | else() | ||||
find_package(Jemalloc 3.6.0 REQUIRED) | find_package(Jemalloc 3.6.0 REQUIRED) | ||||
link_libraries(Jemalloc::jemalloc) | link_libraries(Jemalloc::jemalloc) | ||||
endif() | endif() | ||||
endif() | endif() | ||||
# Check if std::system or ::wsystem is available | |||||
include(CheckCXXSymbolExists) | |||||
check_cxx_symbol_exists(std::system "cstdlib" HAVE_STD_SYSTEM) | |||||
check_cxx_symbol_exists(::wsystem "" HAVE_WSYSTEM) | |||||
if(HAVE_STD_SYSTEM OR HAVE_WSYSTEM) | |||||
add_compile_definitions(HAVE_SYSTEM) | |||||
endif() | |||||
deadalnix: There is a config CMakeFile where this is more appropriate. | |||||
# Make sure that all the global compiler and linker flags are set BEFORE | # Make sure that all the global compiler and linker flags are set BEFORE | ||||
# including the libraries so they apply as needed. | # including the libraries so they apply as needed. | ||||
# libraries | # libraries | ||||
add_subdirectory(crypto) | add_subdirectory(crypto) | ||||
add_subdirectory(leveldb) | add_subdirectory(leveldb) | ||||
▲ Show 20 Lines • Show All 410 Lines • Show Last 20 Lines |
There is a config CMakeFile where this is more appropriate.