build reorganization and experimental clang support

This commit is contained in:
jadebenn
2024-04-05 16:50:39 -05:00
parent 018e5707d7
commit 145f97cfdc
4 changed files with 234 additions and 191 deletions

View File

@@ -23,6 +23,11 @@ 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")
target_compile_definitions(bcrypt PRIVATE "_POSIX_C_SOURCE=200809L")
endif()
target_include_directories(bcrypt INTERFACE "libbcrypt/include")
target_include_directories(bcrypt PRIVATE "libbcrypt/src")