We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 841bd75 commit 9075baeCopy full SHA for 9075bae
src/tests/CMakeLists.txt
@@ -26,9 +26,7 @@ endif()
26
27
add_executable(test_${name} test_${name}.f90)
28
target_link_libraries(test_${name} PRIVATE h5fortran::h5fortran)
29
-if(CMAKE_Fortran_COMPILER_ID STREQUAL GNU)
30
- target_compile_options(test_${name} PRIVATE -Wno-compare-reals -Wno-conversion)
31
-endif()
+target_compile_options(test_${name} PRIVATE "$<$<Fortran_COMPILER_ID:GNU>:-Wno-compare-reals;-Wno-conversion>")
32
set_target_properties(test_${name} PROPERTIES LABELS unit)
33
34
add_test(NAME h5fortran:${name}
0 commit comments