build: linear_algebra examples re-enabled on gcc11

This commit is contained in:
Mateusz Pusz
2021-10-15 16:14:00 +02:00
parent 93921e8f31
commit ee70c48b13
3 changed files with 9 additions and 15 deletions

View File

@@ -51,9 +51,7 @@ if(NOT UNITS_LIBCXX)
UNITS_NO_REFERENCES 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)
find_package(wg21_linear_algebra CONFIG REQUIRED) add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si)
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)
target_link_libraries(linear_algebra-aliases PRIVATE wg21_linear_algebra::wg21_linear_algebra)
endif()
endif() endif()

View File

@@ -50,9 +50,7 @@ if(NOT UNITS_LIBCXX)
UNITS_NO_ALIASES 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)
find_package(wg21_linear_algebra CONFIG REQUIRED) add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si)
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)
target_link_libraries(linear_algebra-literals PRIVATE wg21_linear_algebra::wg21_linear_algebra)
endif()
endif() endif()

View File

@@ -50,9 +50,7 @@ if(NOT UNITS_LIBCXX)
UNITS_NO_ALIASES 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)
find_package(wg21_linear_algebra CONFIG REQUIRED) add_example(linear_algebra mp-units::core-fmt mp-units::core-io mp-units::si)
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)
target_link_libraries(linear_algebra-references PRIVATE wg21_linear_algebra::wg21_linear_algebra)
endif()
endif() endif()