diff --git a/cmake/modules/CompilerFlags.cmake b/cmake/modules/CompilerFlags.cmake index f464aa44bc7..f23a52b7596 100644 --- a/cmake/modules/CompilerFlags.cmake +++ b/cmake/modules/CompilerFlags.cmake @@ -24,6 +24,8 @@ endif() set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_EXTENSIONS OFF) +add_definitions(-DHAS_CAPTURE) + if(NOT MSVC) set(FALCOSECURITY_LIBS_COMMON_FLAGS "-Wall -ggdb") @@ -66,10 +68,6 @@ if(NOT MSVC) set(CMAKE_C_FLAGS_COVERAGE "${FALCOSECURITY_LIBS_COVERAGE_FLAGS}") set(CMAKE_CXX_FLAGS_COVERAGE "${FALCOSECURITY_LIBS_COVERAGE_FLAGS}") - if(CMAKE_SYSTEM_NAME MATCHES "Linux") - add_definitions(-DHAS_CAPTURE) - endif() - add_definitions(-D__STDC_FORMAT_MACROS) else() # MSVC