Skip to content

Commit

Permalink
wip: always build with HAS_CAPTURE
Browse files Browse the repository at this point in the history
Signed-off-by: Roberto Scolaro <[email protected]>
  • Loading branch information
therealbobo committed Feb 1, 2024
1 parent 0c05f90 commit 31dfa6a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmake/modules/CompilerFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 31dfa6a

Please sign in to comment.