see if this re-breaks mac

This commit is contained in:
jadebenn
2024-04-06 19:27:34 -05:00
parent 07626f8ebb
commit a4b6b7c0d9
2 changed files with 2 additions and 4 deletions

View File

@@ -23,8 +23,8 @@ if(NOT WIN32)
target_include_directories(bcrypt PRIVATE "libbcrypt/include/bcrypt")
endif()
# Need to define this on Clang (Linux) for 'strdup' support
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# Need to define this on Clang and GNU for 'strdup' support
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR "GNU")
target_compile_definitions(bcrypt PRIVATE "_POSIX_C_SOURCE=200809L")
endif()