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

@ -8,8 +8,6 @@ message(STATUS "CMAKE_RUNTIME_OUTPUT_DIRECTORY = ${CMAKE_RUNTIME_OUTPUT_DIRECTOR
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
message(STATUS "CMAKE_RUNTIME_OUTPUT_DIRECTORY = ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}")
message(STATUS "Executable Path: @executable_path")
if(APPLE)
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH True)
set(CMAKE_BUILD_WITH_INSTALL_RPATH True)

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()