mirror of
https://github.com/cookiengineer/audacity
synced 2025-06-16 16:10:06 +02:00
Add an option to force the build of dependencies
When `audacity_conan_allow_prebuilt_binaries` is turned on, the dependecies that are managed by Conan will be built from the source code every time cmake configuartion changes
This commit is contained in:
parent
f0bea9ed21
commit
aae3627476
15
BUILDING.md
15
BUILDING.md
@ -191,4 +191,17 @@ To find system packages, we rely on `pkg-config`. There are several packages tha
|
||||
### Disabling Conan
|
||||
|
||||
Conan can be disabled completely using `-Daudacity_conan_enabled=Off` during the configuration.
|
||||
This option implies `-Daudacity_obey_system_dependencies=On` and disables `local` for packages that are managed with Conan.
|
||||
This option implies `-Daudacity_obey_system_dependencies=On` and disables `local` for packages that are managed with Conan.
|
||||
|
||||
### Disabling pre-built binaries downloads for Conan
|
||||
|
||||
It is possible to force Conan to build all the dependencies from the source code without using the pre-built binaries. To do so, please pass `-Daudaicity_conan_allow_prebuilt_binaries=Off` to CMake during the configration. This option will trigger rebuild every
|
||||
time CMake configuration changes.
|
||||
|
||||
### Reducing Conan cache size
|
||||
|
||||
In order to reduce the space used by Conan cache, please run:
|
||||
|
||||
```
|
||||
$ conan remove "*" --src --builds --force
|
||||
```
|
||||
|
@ -9,6 +9,12 @@ if( ${_OPT}conan_enabled )
|
||||
)
|
||||
endif()
|
||||
|
||||
if ( ${_OPT}conan_allow_prebuilt_binaries )
|
||||
set ( CONAN_BUILD_MODE BUILD missing )
|
||||
else()
|
||||
set( CONAN_BUILD_MODE BUILD all )
|
||||
endif()
|
||||
|
||||
set( CONAN_BUILD_REQUIRES )
|
||||
set( CONAN_REQUIRES )
|
||||
set( CONAN_PACKAGE_OPTIONS )
|
||||
@ -253,7 +259,7 @@ function ( _conan_install build_type )
|
||||
|
||||
|
||||
conan_cmake_install(PATH_OR_REFERENCE .
|
||||
BUILD missing
|
||||
${CONAN_BUILD_MODE}
|
||||
SETTINGS ${settings}
|
||||
)
|
||||
endfunction()
|
||||
|
Loading…
x
Reference in New Issue
Block a user