mirror of
https://github.com/DarkflameUniverse/DarkflameServer.git
synced 2024-11-12 19:28:21 +00:00
Fix Windows not working due to libbcrypt not working on Ninja (#765)
This commit is contained in:
parent
3b75ecc0b4
commit
e3077aa410
16
thirdparty/CMakeLists.txt
vendored
16
thirdparty/CMakeLists.txt
vendored
@ -6,13 +6,15 @@ set(tinyxml2_BUILD_TESTING OFF)
|
|||||||
# Source Code for tinyxml2
|
# Source Code for tinyxml2
|
||||||
add_subdirectory(tinyxml2)
|
add_subdirectory(tinyxml2)
|
||||||
|
|
||||||
# Source Code for libbcrypt
|
# Source Code for libbcrypt. Uses a file glob instead to get around Windows build issues.
|
||||||
# Disable warning about no project version.
|
file(
|
||||||
set(CMAKE_POLICY_DEFAULT_CMP0048 NEW)
|
GLOB SOURCES_LIBBCRYPT
|
||||||
# Disable warning about the minimum version of cmake used for bcrypt being deprecated in the future
|
LIST_DIRECTORIES false
|
||||||
set(CMAKE_WARN_DEPRECATED OFF CACHE BOOL "" FORCE)
|
RELATIVE "${CMAKE_CURRENT_SOURCE_DIR}"
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/libbcrypt/*.c
|
||||||
add_subdirectory(libbcrypt)
|
${CMAKE_CURRENT_SOURCE_DIR}/libbcrypt/src/*.c
|
||||||
|
)
|
||||||
|
add_library(bcrypt ${SOURCES_LIBBCRYPT})
|
||||||
|
|
||||||
# Source code for sqlite
|
# Source code for sqlite
|
||||||
add_subdirectory(SQLite)
|
add_subdirectory(SQLite)
|
||||||
|
Loading…
Reference in New Issue
Block a user