From ee70c48b13bea93a5e0014f31eecb34c81da1ab8 Mon Sep 17 00:00:00 2001 From: Mateusz Pusz Date: Fri, 15 Oct 2021 16:14:00 +0200 Subject: [PATCH] build: linear_algebra examples re-enabled on gcc11 --- example/aliases/CMakeLists.txt | 8 +++----- example/literals/CMakeLists.txt | 8 +++----- example/references/CMakeLists.txt | 8 +++----- 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/example/aliases/CMakeLists.txt b/example/aliases/CMakeLists.txt index 71f1f63a..22c10ef0 100644 --- a/example/aliases/CMakeLists.txt +++ b/example/aliases/CMakeLists.txt @@ -51,9 +51,7 @@ if(NOT UNITS_LIBCXX) UNITS_NO_REFERENCES ) - if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "11.1.0")) - find_package(wg21_linear_algebra CONFIG REQUIRED) - add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si) - target_link_libraries(linear_algebra-aliases PRIVATE wg21_linear_algebra::wg21_linear_algebra) - endif() + find_package(wg21_linear_algebra CONFIG REQUIRED) + add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si) + target_link_libraries(linear_algebra-aliases PRIVATE wg21_linear_algebra::wg21_linear_algebra) endif() diff --git a/example/literals/CMakeLists.txt b/example/literals/CMakeLists.txt index 7e3cf556..5da510ca 100644 --- a/example/literals/CMakeLists.txt +++ b/example/literals/CMakeLists.txt @@ -50,9 +50,7 @@ if(NOT UNITS_LIBCXX) UNITS_NO_ALIASES ) - if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "11.1.0")) - find_package(wg21_linear_algebra CONFIG REQUIRED) - add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si) - target_link_libraries(linear_algebra-literals PRIVATE wg21_linear_algebra::wg21_linear_algebra) - endif() + find_package(wg21_linear_algebra CONFIG REQUIRED) + add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si) + target_link_libraries(linear_algebra-literals PRIVATE wg21_linear_algebra::wg21_linear_algebra) endif() diff --git a/example/references/CMakeLists.txt b/example/references/CMakeLists.txt index 06b6698c..750d38c4 100644 --- a/example/references/CMakeLists.txt +++ b/example/references/CMakeLists.txt @@ -50,9 +50,7 @@ if(NOT UNITS_LIBCXX) UNITS_NO_ALIASES ) - if(NOT (CMAKE_CXX_COMPILER_ID STREQUAL "GNU" AND CMAKE_CXX_COMPILER_VERSION VERSION_EQUAL "11.1.0")) - find_package(wg21_linear_algebra CONFIG REQUIRED) - add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si) - target_link_libraries(linear_algebra-references PRIVATE wg21_linear_algebra::wg21_linear_algebra) - endif() + find_package(wg21_linear_algebra CONFIG REQUIRED) + add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si) + target_link_libraries(linear_algebra-references PRIVATE wg21_linear_algebra::wg21_linear_algebra) endif()