1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-19 17:11:12 +02:00

Allow building Tenacity without Conan

Conan can still be used, but it is fully optional. This should help packagers
a lot.

Signed-off-by: Edgar <Edgar@AnotherFoxGuy.com>
This commit is contained in:
Edgar
2021-07-31 01:22:48 +02:00
committed by GitHub
parent 047729727a
commit 04609bba01
10 changed files with 276 additions and 1313 deletions

View File

@@ -137,6 +137,13 @@ else()
message( STATUS "Could NOT find ccache nor sccache, no compiler caching enabled" )
endif()
include( CMakeDependentOption )
# Test if conan is installed
find_program(CONAN_CMD_TEST conan NO_CACHE)
cmake_dependent_option(USE_CONAN "Build without conan" ON "NOT CONAN_CMD_TEST STREQUAL CONAN_CMD_TEST-NOTFOUND" OFF)
message("Using conan: ${USE_CONAN}")
# Our very own project
project( Tenacity )
@@ -167,7 +174,6 @@ include( CheckIncludeFiles )
include( CheckLibraryExists )
include( CheckSymbolExists )
include( CheckTypeSize )
include( CMakeDependentOption )
include( CMakeDetermineASM_NASMCompiler )
include( CMakePushCheckState )
include( GNUInstallDirs )