diff options
-rw-r--r-- | CMakeLists.txt | 13 | ||||
-rw-r--r-- | appveyor.yml | 2 |
2 files changed, 10 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index e7f49313..1f3d77ad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -170,12 +170,17 @@ if(ASAN) | |||
170 | set(CMAKE_REQUIRED_LIBRARIES "${SAFE_CMAKE_REQUIRED_LIBRARIES}") | 170 | set(CMAKE_REQUIRED_LIBRARIES "${SAFE_CMAKE_REQUIRED_LIBRARIES}") |
171 | endif() | 171 | endif() |
172 | 172 | ||
173 | option(BUILD_TOXAV "Whether to build the tox AV library" ON) | ||
174 | |||
173 | include(Dependencies) | 175 | include(Dependencies) |
174 | 176 | ||
175 | if(OPUS_FOUND AND VPX_FOUND) | 177 | if (BUILD_TOXAV) |
176 | set(BUILD_TOXAV TRUE) | 178 | if(NOT OPUS_FOUND) |
177 | else() | 179 | message(SEND_ERROR "Option BUILD_TOXAV is enabled but required library OPUS was not found.") |
178 | set(BUILD_TOXAV FALSE) | 180 | endif() |
181 | if(NOT VPX_FOUND) | ||
182 | message(SEND_ERROR "Option BUILD_TOXAV is enabled but required library VPX was not found.") | ||
183 | endif() | ||
179 | endif() | 184 | endif() |
180 | 185 | ||
181 | ################################################################################ | 186 | ################################################################################ |
diff --git a/appveyor.yml b/appveyor.yml index ec90e428..4b4bfb20 100644 --- a/appveyor.yml +++ b/appveyor.yml | |||
@@ -13,7 +13,7 @@ install: | |||
13 | - cd .. | 13 | - cd .. |
14 | 14 | ||
15 | before_build: | 15 | before_build: |
16 | - cmake . -DBOOTSTRAP_DAEMON=OFF -DENABLE_SHARED=OFF | 16 | - cmake . -DBOOTSTRAP_DAEMON=OFF -DENABLE_SHARED=OFF -DBUILD_TOXAV=OFF |
17 | 17 | ||
18 | build: | 18 | build: |
19 | project: INSTALL.vcxproj | 19 | project: INSTALL.vcxproj |