Fix debug mode detection for multi-mode builds like MSVC
This commit is contained in:
parent
c4b56e0d99
commit
f90fb5a001
7
vendor/cryptopp/CMakeLists.txt
vendored
7
vendor/cryptopp/CMakeLists.txt
vendored
@ -4,10 +4,9 @@ add_library(cryptopp dummy.cpp)
|
|||||||
# note: include directory is called vendor_cryptopp instead of cryptopp to avoid include clashes with system headers
|
# note: include directory is called vendor_cryptopp instead of cryptopp to avoid include clashes with system headers
|
||||||
target_include_directories(cryptopp SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
target_include_directories(cryptopp SYSTEM INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||||
|
|
||||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
# Forward debug build info (i.e. set CRYPTOPP_DEBUG variable if building in debug mode)
|
||||||
target_compile_definitions(cryptopp PUBLIC -DCRYPTOPP_DEBUG) # add to all targets depending on this
|
target_compile_definitions(cryptopp PUBLIC $<$<CONFIG:Debug>:CRYPTOPP_DEBUG>) # add to all targets depending on this
|
||||||
add_compile_options(-DCRYPTOPP_DEBUG) # add to stuff built in subdirectories (like the actual library)
|
add_compile_options($<$<CONFIG:Debug>:-DCRYPTOPP_DEBUG>) # add to stuff built in subdirectories (like the actual library)
|
||||||
endif()
|
|
||||||
|
|
||||||
if(NOT DISABLE_OPENMP)
|
if(NOT DISABLE_OPENMP)
|
||||||
if((APPLE AND ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")))
|
if((APPLE AND ((CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") OR (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")))
|
||||||
|
Loading…
Reference in New Issue
Block a user