mirror of
https://github.com/clangen/musikcube.git
synced 2024-10-01 20:42:13 +00:00
Explicit library flags for vendor library builds.
This commit is contained in:
parent
90a92c80bd
commit
3685145f1d
@ -8,7 +8,7 @@ INCLUDE(CheckLibraryExists)
|
|||||||
|
|
||||||
function(check_working_cxx_atomics varname)
|
function(check_working_cxx_atomics varname)
|
||||||
set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
||||||
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=c++11")
|
set(CMAKE_REQUIRED_FLAGS "${CMAKE_REQUIRED_FLAGS} -std=c++17")
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
std::atomic<int> x;
|
std::atomic<int> x;
|
||||||
@ -21,7 +21,7 @@ endfunction(check_working_cxx_atomics)
|
|||||||
|
|
||||||
function(check_working_cxx_atomics64 varname)
|
function(check_working_cxx_atomics64 varname)
|
||||||
set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
set(OLD_CMAKE_REQUIRED_FLAGS ${CMAKE_REQUIRED_FLAGS})
|
||||||
set(CMAKE_REQUIRED_FLAGS "-std=c++11 ${CMAKE_REQUIRED_FLAGS}")
|
set(CMAKE_REQUIRED_FLAGS "-std=c++17 ${CMAKE_REQUIRED_FLAGS}")
|
||||||
CHECK_CXX_SOURCE_COMPILES("
|
CHECK_CXX_SOURCE_COMPILES("
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
@ -20,7 +20,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
export CFLAGS="-fPIC"
|
export CFLAGS="-fPIC"
|
||||||
export CXXFLAGS="-fPIC"
|
export CXXFLAGS="-fPIC -std=c++17"
|
||||||
|
|
||||||
RPATH="@rpath"
|
RPATH="@rpath"
|
||||||
|
|
||||||
@ -106,7 +106,7 @@ function fetch_packages() {
|
|||||||
#
|
#
|
||||||
|
|
||||||
function build_boost() {
|
function build_boost() {
|
||||||
BOOST_CXX_FLAGS="-fPIC"
|
BOOST_CXX_FLAGS="-fPIC -std=c++17"
|
||||||
if [[ $OS == "Darwin" ]]; then
|
if [[ $OS == "Darwin" ]]; then
|
||||||
BOOST_CXX_FLAGS="-fPIC -std=c++17 -stdlib=libc++"
|
BOOST_CXX_FLAGS="-fPIC -std=c++17 -stdlib=libc++"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user