From 31dfa6ad9e244651b8b582bc7c9c456e111d7873 Mon Sep 17 00:00:00 2001 From: Roberto Scolaro Date: Thu, 1 Feb 2024 10:55:24 +0000 Subject: [PATCH] wip: always build with HAS_CAPTURE Signed-off-by: Roberto Scolaro --- cmake/modules/CompilerFlags.cmake | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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