mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-23 17:25:54 +01:00
Various cmake changes
Mostly from suggestions, but there's a couple of other minor fixes and additions: Cmake not decides with SDK to use on Windows All Audacity cmake options are not prefixed with "audacity_", but this is configurable in audacity/CMakeLists.txt Several other options have been marked advanced so they don't clutter the CMake GUI On Windows, multiple processors will now be used reducing build time considerably Quieted a couple of package messages that the user doesn't need to see No longer tried to create aliases on Windows No longer used precompiled headers if ccache is available On Windows, only copies the needed wxWidgets and VC runtime libraries to the bin directory
This commit is contained in:
@@ -15,19 +15,19 @@ message( STATUS "========== Configuring ${name} ==========" )
|
||||
set( USE_${symbol} ON CACHE INTERNAL USE_${symbol} )
|
||||
|
||||
# Add the system/local option
|
||||
option( use_system_${name} "Use ${name} system library if available" ${prefer_system_libs} )
|
||||
option( ${_OPT}use_system_${name} "Use ${name} system library if available" ${${_OPT}prefer_system_libs} )
|
||||
|
||||
# Look up the system packages if the user wants them
|
||||
if( use_system_${name} )
|
||||
if( ${_OPT}use_system_${name} )
|
||||
# Provide an option that determines if the libraries are loaded
|
||||
# dynamically at run time or statically linked at build time
|
||||
option( disable_dynamic_${name} "Disable dynamic loading of ${name} libraries" NO)
|
||||
option( ${_OPT}disable_dynamic_${name} "Disable dynamic loading of ${name} libraries" NO)
|
||||
|
||||
# Look them up
|
||||
pkg_check_modules( ${TARGET} ${packages} )
|
||||
else()
|
||||
# Make sure to reset in case user reconfigures between local/system
|
||||
set( disable_dynamic_${name} NO CACHE INTERNAL "" )
|
||||
set( ${_OPT}disable_dynamic_${name} NO CACHE INTERNAL "" )
|
||||
endif()
|
||||
|
||||
# If the system packages were found
|
||||
|
||||
Reference in New Issue
Block a user