mirror of
https://github.com/boostorg/static_assert.git
synced 2025-07-13 12:46:33 +02:00
Compare commits
6 Commits
boost-1.75
...
boost-1.80
Author | SHA1 | Date | |
---|---|---|---|
ba72d3340f | |||
803b983da7 | |||
392199f6b1 | |||
482e81cddd | |||
66db74297a | |||
e9ab97859d |
@ -275,8 +275,9 @@ matrix:
|
||||
env: CMAKE=1
|
||||
script:
|
||||
- mkdir __build__ && cd __build__
|
||||
- cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 -DBOOST_INCLUDE_LIBRARIES=static_assert ..
|
||||
- ctest --output-on-failure -R boost_static_assert
|
||||
- cmake -DBUILD_TESTING=ON -DBOOST_INCLUDE_LIBRARIES=static_assert ..
|
||||
- cmake --build . --target tests
|
||||
- ctest --output-on-failure
|
||||
|
||||
- os: linux
|
||||
env: CMAKE_SUBDIR=1
|
||||
@ -292,8 +293,9 @@ matrix:
|
||||
- os: linux
|
||||
env: CMAKE_INSTALL=1
|
||||
script:
|
||||
- pip install --user cmake
|
||||
- mkdir __build__ && cd __build__
|
||||
- cmake -DBOOST_ENABLE_CMAKE=1 -DBoost_VERBOSE=1 -DBOOST_INCLUDE_LIBRARIES="static_assert;config" -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||||
- cmake -DBOOST_INCLUDE_LIBRARIES=static_assert -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||||
- cmake --build . --target install
|
||||
- cd ../libs/static_assert/test/cmake_install_test && mkdir __build__ && cd __build__
|
||||
- cmake -DCMAKE_INSTALL_PREFIX=~/.local ..
|
||||
|
@ -18,16 +18,6 @@ target_link_libraries(boost_static_assert
|
||||
Boost::config
|
||||
)
|
||||
|
||||
# boost_install requires PROJECT_VERSION
|
||||
# Without the superproject, we don't have any, so skip installation
|
||||
|
||||
if(BOOST_SUPERPROJECT_VERSION)
|
||||
|
||||
include(BoostInstall)
|
||||
boost_install(TARGETS boost_static_assert HEADER_DIRECTORY include/)
|
||||
|
||||
endif()
|
||||
|
||||
# BUILD_TESTING is the standard CTest variable that enables testing
|
||||
|
||||
if(BUILD_TESTING)
|
||||
|
@ -16,6 +16,7 @@
|
||||
|
||||
#include <boost/config.hpp>
|
||||
#include <boost/detail/workaround.hpp>
|
||||
#include <cstddef> //for std::size_t
|
||||
|
||||
#if defined(__GNUC__) && !defined(__GXX_EXPERIMENTAL_CXX0X__)
|
||||
//
|
||||
@ -81,7 +82,7 @@ template <bool x> struct STATIC_ASSERTION_FAILURE;
|
||||
template <> struct STATIC_ASSERTION_FAILURE<true> { enum { value = 1 }; };
|
||||
|
||||
// HP aCC cannot deal with missing names for template value parameters
|
||||
template<int x> struct static_assert_test{};
|
||||
template<std::size_t x> struct static_assert_test{};
|
||||
|
||||
}
|
||||
|
||||
|
@ -12,5 +12,6 @@
|
||||
],
|
||||
"maintainers": [
|
||||
"John Maddock <john -at- johnmaddock.co.uk>"
|
||||
]
|
||||
],
|
||||
"cxxstd": "03"
|
||||
}
|
||||
|
Reference in New Issue
Block a user