diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 51e1e99f..98a4eabe 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -18,7 +18,7 @@ cmake_minimum_required(VERSION 2.8.12) | |||
18 | cmake_policy(VERSION 2.8.12) | 18 | cmake_policy(VERSION 2.8.12) |
19 | project(toxcore) | 19 | project(toxcore) |
20 | 20 | ||
21 | set(CMAKE_MODULE_PATH ${toxcore_SOURCE_DIR}/cmake) | 21 | list(APPEND CMAKE_MODULE_PATH ${toxcore_SOURCE_DIR}/cmake) |
22 | 22 | ||
23 | ################################################################################ | 23 | ################################################################################ |
24 | # | 24 | # |
@@ -115,6 +115,13 @@ option(NON_HERMETIC_TESTS "Whether to build and run tests that depend on an inte | |||
115 | option(BUILD_TOXAV "Whether to build the tox AV library" ON) | 115 | option(BUILD_TOXAV "Whether to build the tox AV library" ON) |
116 | option(MUST_BUILD_TOXAV "Fail the build if toxav cannot be built" OFF) | 116 | option(MUST_BUILD_TOXAV "Fail the build if toxav cannot be built" OFF) |
117 | 117 | ||
118 | if(MSVC) | ||
119 | option(MSVC_STATIC_SODIUM "Whether to link libsodium statically for MSVC" OFF) | ||
120 | if(MSVC_STATIC_SODIUM) | ||
121 | add_definitions(-DSODIUM_STATIC=1 -DSODIUM_EXPORT) | ||
122 | endif() | ||
123 | endif() | ||
124 | |||
118 | include(Dependencies) | 125 | include(Dependencies) |
119 | 126 | ||
120 | if(MUST_BUILD_TOXAV) | 127 | if(MUST_BUILD_TOXAV) |