diff --git a/example/aliases/CMakeLists.txt b/example/aliases/CMakeLists.txt index 22c10ef0..71f1f63a 100644 --- a/example/aliases/CMakeLists.txt +++ b/example/aliases/CMakeLists.txt @@ -51,7 +51,9 @@ if(NOT UNITS_LIBCXX) UNITS_NO_REFERENCES ) - 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) + 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() endif() diff --git a/example/literals/CMakeLists.txt b/example/literals/CMakeLists.txt index 5da510ca..7e3cf556 100644 --- a/example/literals/CMakeLists.txt +++ b/example/literals/CMakeLists.txt @@ -50,7 +50,9 @@ if(NOT UNITS_LIBCXX) UNITS_NO_ALIASES ) - 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) + 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() endif() diff --git a/example/references/CMakeLists.txt b/example/references/CMakeLists.txt index 750d38c4..06b6698c 100644 --- a/example/references/CMakeLists.txt +++ b/example/references/CMakeLists.txt @@ -50,7 +50,9 @@ if(NOT UNITS_LIBCXX) UNITS_NO_ALIASES ) - 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) + 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() endif()