mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Fixed build.
This commit is contained in:
parent
f2f266e9a7
commit
55a2e59a64
8
CMakeLists.txt
Normal file → Executable file
8
CMakeLists.txt
Normal file → Executable file
|
@ -6,9 +6,7 @@ if(NOT WIN32)
|
|||
option(USE_NACL "Use NaCl library instead of libsodium")
|
||||
endif()
|
||||
|
||||
if(NOT USE_NACL)
|
||||
set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY})
|
||||
else()
|
||||
if(USE_NACL)
|
||||
find_package(NaCl REQUIRED)
|
||||
|
||||
include_directories(${NACL_INCLUDE_DIR})
|
||||
|
@ -26,6 +24,10 @@ if(NOT WIN32)
|
|||
find_package(SODIUM REQUIRED)
|
||||
endif()
|
||||
|
||||
if(NOT USE_NACL)
|
||||
set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY})
|
||||
endif()
|
||||
|
||||
macro(linkCoreLibraries exe_name)
|
||||
add_dependencies(${exe_name} core)
|
||||
if(WIN32)
|
||||
|
|
Loading…
Reference in New Issue
Block a user