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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user