Fixed build.

This commit is contained in:
irungentoo 2013-07-31 08:35:06 -04:00
parent f2f266e9a7
commit 55a2e59a64

8
CMakeLists.txt Normal file → Executable file
View File

@ -6,9 +6,7 @@ if(NOT WIN32)
option(USE_NACL "Use NaCl library instead of libsodium") option(USE_NACL "Use NaCl library instead of libsodium")
endif() endif()
if(NOT USE_NACL) if(USE_NACL)
set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY})
else()
find_package(NaCl REQUIRED) find_package(NaCl REQUIRED)
include_directories(${NACL_INCLUDE_DIR}) include_directories(${NACL_INCLUDE_DIR})
@ -26,6 +24,10 @@ if(NOT WIN32)
find_package(SODIUM REQUIRED) find_package(SODIUM REQUIRED)
endif() endif()
if(NOT USE_NACL)
set(LINK_CRYPTO_LIBRARY ${SODIUM_LIBRARY})
endif()
macro(linkCoreLibraries exe_name) macro(linkCoreLibraries exe_name)
add_dependencies(${exe_name} core) add_dependencies(${exe_name} core)
if(WIN32) if(WIN32)