Skip to content

Commit

Permalink
Clang/Windows switching-off xtensor::optimize (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdegeus authored Dec 23, 2020
1 parent 65aff1e commit c0733e3
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ add_executable(${test_name}
target_link_libraries(${test_name} PRIVATE
Catch2::Catch2
FrictionQPotFEM
FrictionQPotFEM::compiler_warnings
xtensor::optimize)
FrictionQPotFEM::compiler_warnings)

if (NOT (WIN32 AND (CMAKE_CXX_COMPILER_ID STREQUAL "Clang")))
target_link_libraries(${test_name} PRIVATE xtensor::optimize)
else()
message(STATUS "Skipping 'xtensor::optimize' because of known bug on Windows/clang.")
endif()


if(ASSERT)
target_link_libraries(${test_name} PRIVATE FrictionQPotFEM::assert)
Expand Down

0 comments on commit c0733e3

Please sign in to comment.