diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-09-24 20:29:25 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-09-24 22:25:49 +0000 |
commit | bfd288c196cfacda78d4b702c1540a0172ef5521 (patch) | |
tree | aa7f42b97abd62f583f8eefc0e07741009671ca3 /CMakeLists.txt | |
parent | d5d6e3f60f22aee2735cb80db407c201a00e357b (diff) |
Revert "Improve cmake build for MSVC."
This reverts commit f87f8719d02a9adbc9413256fe22958267cfefee.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 72d9246f..47d5e372 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -168,7 +168,7 @@ set(toxcore_SOURCES ${toxcore_SOURCES} | |||
168 | include(CheckFunctionExists) | 168 | include(CheckFunctionExists) |
169 | check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) | 169 | check_function_exists(explicit_bzero HAVE_EXPLICIT_BZERO) |
170 | check_function_exists(memset_s HAVE_MEMSET_S) | 170 | check_function_exists(memset_s HAVE_MEMSET_S) |
171 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} sodium) | 171 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${LIBSODIUM_LIBRARIES}) |
172 | set(toxcore_PKGCONFIG_REQUIRES ${toxcore_PKGCONFIG_REQUIRES} libsodium) | 172 | set(toxcore_PKGCONFIG_REQUIRES ${toxcore_PKGCONFIG_REQUIRES} libsodium) |
173 | 173 | ||
174 | # LAYER 2: Basic networking | 174 | # LAYER 2: Basic networking |
@@ -275,7 +275,7 @@ if(BUILD_TOXAV) | |||
275 | toxav/toxav_old.c | 275 | toxav/toxav_old.c |
276 | toxav/video.c | 276 | toxav/video.c |
277 | toxav/video.h) | 277 | toxav/video.h) |
278 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} Opus::Opus Vpx::Vpx) | 278 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${OPUS_LIBRARIES} ${VPX_LIBRARIES}) |
279 | set(toxcore_PKGCONFIG_REQUIRES ${toxcore_PKGCONFIG_REQUIRES} opus vpx) | 279 | set(toxcore_PKGCONFIG_REQUIRES ${toxcore_PKGCONFIG_REQUIRES} opus vpx) |
280 | 280 | ||
281 | set(toxcore_API_HEADERS ${toxcore_API_HEADERS} ${toxcore_SOURCE_DIR}/toxav/toxav.h^toxav) | 281 | set(toxcore_API_HEADERS ${toxcore_API_HEADERS} ${toxcore_SOURCE_DIR}/toxav/toxav.h^toxav) |
@@ -304,10 +304,11 @@ set(toxcore_API_HEADERS ${toxcore_API_HEADERS} ${toxcore_SOURCE_DIR}/toxencrypts | |||
304 | # any potential libvpx linking. | 304 | # any potential libvpx linking. |
305 | message("CMAKE_THREAD_LIBS_INIT: ${CMAKE_THREAD_LIBS_INIT}") | 305 | message("CMAKE_THREAD_LIBS_INIT: ${CMAKE_THREAD_LIBS_INIT}") |
306 | if(CMAKE_THREAD_LIBS_INIT) | 306 | if(CMAKE_THREAD_LIBS_INIT) |
307 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} Threads::Threads) | 307 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${CMAKE_THREAD_LIBS_INIT}) |
308 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} ${CMAKE_THREAD_LIBS_INIT}) | 308 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} ${CMAKE_THREAD_LIBS_INIT}) |
309 | endif() | 309 | endif() |
310 | 310 | ||
311 | |||
311 | if(NSL_LIBRARIES) | 312 | if(NSL_LIBRARIES) |
312 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${NSL_LIBRARIES}) | 313 | set(toxcore_LINK_MODULES ${toxcore_LINK_MODULES} ${NSL_LIBRARIES}) |
313 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} -lnsl) | 314 | set(toxcore_PKGCONFIG_LIBS ${toxcore_PKGCONFIG_LIBS} -lnsl) |