mirror of
https://github.com/boostorg/ratio.git
synced 2025-05-09 15:14:01 +00:00
Update appveyor.yml
This commit is contained in:
parent
0ad3eb44d3
commit
53bc45a12e
@ -39,8 +39,3 @@ build: off
|
|||||||
|
|
||||||
test_script:
|
test_script:
|
||||||
- b2 libs/ratio/test toolset=%TOOLSET%
|
- b2 libs/ratio/test toolset=%TOOLSET%
|
||||||
- mkdir __build__
|
|
||||||
- cd __build__
|
|
||||||
- cmake -DBOOST_RATIO_INCLUDE_TESTS=ON ../libs/ratio/test/test_cmake
|
|
||||||
- cmake --build .
|
|
||||||
- ctest .
|
|
||||||
|
@ -1,40 +0,0 @@
|
|||||||
# Copyright 2018 Mike Dev
|
|
||||||
# Distributed under the Boost Software License, Version 1.0.
|
|
||||||
# See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt
|
|
||||||
|
|
||||||
cmake_minimum_required(VERSION 3.5)
|
|
||||||
# NOTE: Individual boost cmake files might require a higher cmake version
|
|
||||||
|
|
||||||
project(boost LANGUAGES CXX)
|
|
||||||
|
|
||||||
#=== options ===
|
|
||||||
|
|
||||||
# Some libraries' cmake files don't work well with this cmake file, e.g. because
|
|
||||||
# - they are generally not designed to support the add_subdirectory workflow at all
|
|
||||||
# - they define targets with conflicting names (e.g. check)
|
|
||||||
# - require some additional (internal or external) dependencies
|
|
||||||
#
|
|
||||||
# Those libraries can be excluded here
|
|
||||||
set(BOOST_RATIO_IGNORE_LIBS callable_traits;hof;compute;gil;hana;yap;safe_numerics;beast CACHE STRING "List of libraries that will be excluded from cmake build")
|
|
||||||
|
|
||||||
|
|
||||||
#~~~ options ~~~
|
|
||||||
message(STATUS "[Boost] Excluded libs (BOOST_RATIO_IGNORE_LIBS): ${BOOST_RATIO_IGNORE_LIBS}")
|
|
||||||
|
|
||||||
# cmake doesn't require autolinking and currently most cmake files don't produce
|
|
||||||
# name mangled libraries anyway
|
|
||||||
add_definitions(-DBOOST_ALL_NO_LIB)
|
|
||||||
enable_testing()
|
|
||||||
|
|
||||||
# Detect and process all CMakeLists files that reside in the root folder of a library
|
|
||||||
file(GLOB boost_libs_with_cmake_files ../../../../libs/*/CMakeLists.txt)
|
|
||||||
|
|
||||||
foreach(cmake_file IN LISTS boost_libs_with_cmake_files)
|
|
||||||
|
|
||||||
get_filename_component(dir ${cmake_file} DIRECTORY)
|
|
||||||
get_filename_component(lib_name ${dir} NAME)
|
|
||||||
if(NOT lib_name IN_LIST BOOST_RATIO_IGNORE_LIBS)
|
|
||||||
add_subdirectory(${dir} ${lib_name})
|
|
||||||
endif()
|
|
||||||
|
|
||||||
endforeach()
|
|
Loading…
x
Reference in New Issue
Block a user