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