mirror of
https://github.com/audacity/linuxdeploy.git
synced 2025-12-10 03:56:50 -06:00
Require static boost libs only if necessary
Some distros don't ship static libraries by default, therefore requiring them by default breaks on those. Also, it makes no sense, really. Fixes one build issue on openSUSE Leap.
This commit is contained in:
parent
5fb5ca5a8b
commit
fb5cd4d32d
@ -4,7 +4,10 @@ cmake_minimum_required(VERSION 3.5)
|
||||
# globally include own includes
|
||||
include_directories(${PROJECT_SOURCE_DIR}/include)
|
||||
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
if(STATIC_BUILD)
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
endif()
|
||||
|
||||
find_package(Boost REQUIRED COMPONENTS filesystem regex)
|
||||
set(BOOST_LIBS Boost::filesystem Boost::regex)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user