From 3b782354165175af4f920a0843a335378ab390ba Mon Sep 17 00:00:00 2001 From: Dominik Thoennes <dominik.thoennes@fau.de> Date: Mon, 29 Jan 2024 09:44:49 +0100 Subject: [PATCH] don't compile fp16 test if half precision is disabled --- tests/core/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/core/CMakeLists.txt b/tests/core/CMakeLists.txt index 8d3f0298a..240fe56dc 100644 --- a/tests/core/CMakeLists.txt +++ b/tests/core/CMakeLists.txt @@ -172,9 +172,6 @@ waLBerla_compile_test( FILES DebugSTLTest.cpp ) waLBerla_execute_test( NAME DebugSTLTest ) set_tests_properties(DebugSTLTest PROPERTIES WILL_FAIL TRUE) -waLBerla_compile_test( FILES FP16Test.cpp ) -waLBerla_execute_test( NAME FP16Test ) - waLBerla_compile_test( FILES FunctionTraitsTest.cpp ) waLBerla_execute_test( NAME FunctionTraitsTest ) @@ -235,4 +232,7 @@ if ( WALBERLA_BUILD_WITH_HALF_PRECISION_SUPPORT ) # Which features are actually supported depend on the compiler target_compile_features( Float16SupportTest PUBLIC cxx_std_23 ) waLBerla_execute_test(NAME Float16SupportTest) + + waLBerla_compile_test( FILES FP16Test.cpp ) + waLBerla_execute_test( NAME FP16Test ) endif () \ No newline at end of file -- GitLab