File tree Expand file tree Collapse file tree 2 files changed +5
-11
lines changed
Expand file tree Collapse file tree 2 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.19...3.21 )
1+ cmake_minimum_required (VERSION 3.19...3.22 )
22project (OpenMP_Fortran
33LANGUAGES Fortran)
44
@@ -21,13 +21,12 @@ rate = omp_get_wtick()
2121end program"
2222hasOMP)
2323
24- if (NOT hasOMP)
25- message (STATUS "${CMAKE_Fortran_COMPILER_ID} ${CMAKE_Fortran_COMPILER_VERSION} does not support OpenMP." )
26- return ()
27- endif ()
2824
2925set_directory_properties (PROPERTIES LABELS openmp)
3026
3127add_executable (timeprec timeprec.f90)
28+ set_target_properties (timeprec PROPERTIES EXCLUDE_FROM_ALL $<NOT :${hasOMP} >)
3229target_link_libraries (timeprec PRIVATE OpenMP::OpenMP_Fortran)
33- add_test (NAME "OpenMP:TimeMeasure" COMMAND timeprec)
30+
31+ add_test (NAME OpenMP:TimeMeasure COMMAND timeprec)
32+ set_tests_properties (OpenMP:TimeMeasure PROPERTIES DISABLED $<NOT :${hasOMP} >)
Original file line number Diff line number Diff line change 1- cmake_minimum_required (VERSION 3.14...3.20)
2- project (F18system Fortran)
3-
4- enable_testing ()
5-
61set_directory_properties (PROPERTIES LABELS system )
72
83add_executable (color color_text.f90)
You can’t perform that action at this time.
0 commit comments