Skip to content

Commit

Permalink
Set _GNU_SOURCE in unit tests to use strdup without warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
ruimaciel committed Sep 1, 2023
1 parent 8062aff commit caca11f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ find_package(subunit REQUIRED)

include_directories(${PROJECT_SOURCE_DIR})

add_definitions(-D_GNU_SOURCE) # allow access to strdup in tests

set(mropes_tests_prefix "check_mropes_")

file(GLOB mropes_test_files
Expand Down

0 comments on commit caca11f

Please sign in to comment.