File tree Expand file tree Collapse file tree 6 files changed +12
-18
lines changed
Expand file tree Collapse file tree 6 files changed +12
-18
lines changed Original file line number Diff line number Diff line change 11add_executable (rotflip test_rot90.f90 rot90.f90)
2- add_test (NAME array:RotFlip COMMAND $<TARGET_FILE: rotflip> )
2+ add_test (NAME array:RotFlip COMMAND rotflip)
33
44add_executable (auto_allocate_array auto_allocate.f90)
5- add_test (NAME array:AutoAllocate COMMAND $<TARGET_FILE: auto_allocate_array> )
5+ add_test (NAME array:AutoAllocate COMMAND auto_allocate_array)
66
77if (f18assumed_rank)
88 add_executable (assumed_rank assumed-rank.f90)
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ endif()
1616
1717include (${CMAKE_CURRENT_LIST_DIR} /f18abstract.cmake)
1818include (${CMAKE_CURRENT_LIST_DIR} /f18impnone.cmake)
19- include (${CMAKE_CURRENT_LIST_DIR} /f08block.cmake)
2019include (${CMAKE_CURRENT_LIST_DIR} /f08contig.cmake)
2120include (${CMAKE_CURRENT_LIST_DIR} /f18errorstop.cmake)
2221include (${CMAKE_CURRENT_LIST_DIR} /f18random.cmake)
Original file line number Diff line number Diff line change 11add_executable (badbounds badbounds.f90)
2- if (CMAKE_Fortran_COMPILER_ID STREQUAL GCC)
3- target_compile_options (badbounds PRIVATE -fcheck=bounds)
4- endif ()
2+ target_compile_options (badbounds PRIVATE $<$<Fortran_COMPILER_ID:GNU>:-fcheck=bounds>)
53
64add_executable (nanmaxmin maxmin_nan.f90)
75add_test (NAME debug:NaNminmax COMMAND nanmaxmin)
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ endif()
3030message (STATUS "${PROJECT_NAME} git revision: ${git_rev} git_branch: ${git_branch} git_porcelain: ${git_porcelain} " )
3131
3232# example
33- configure_file (main.in.f90 main.f90)
33+ configure_file (main.in.f90 main.f90 @ONLY )
3434add_executable (git_rev ${CMAKE_CURRENT_BINARY_DIR} /main.f90)
3535add_test (NAME git:revision COMMAND $<TARGET_FILE:git_rev>)
Original file line number Diff line number Diff line change 11
2- add_executable (random random.f90 random_demo.f90)
2+ add_executable (random random.f90 random_demo.f90
3+ $<IF:$<BOOL :${f18random} >,random_init_f2018.f90,random_init.f90>
4+ )
35add_test (NAME RandomInit COMMAND random)
4- if (f18random)
5- target_sources (random PRIVATE random_init_f2018.f90)
6- else ()
7- target_sources (random PRIVATE random_init.f90)
8- endif ()
Original file line number Diff line number Diff line change @@ -16,19 +16,19 @@ endif()
1616set (real_prec "integer,parameter :: wp=real${realbits} " )
1717
1818add_executable (cast_int2real cast_int2real.f90)
19- add_test (NAME real:cast_int2real COMMAND $<TARGET_FILE: cast_int2real> )
19+ add_test (NAME real:cast_int2real COMMAND cast_int2real)
2020
21- configure_file (polymorphic.in.f90 polymorphic.f90)
21+ configure_file (polymorphic.in.f90 polymorphic.f90 @ONLY )
2222add_executable (polymorph ${CMAKE_CURRENT_BINARY_DIR} /polymorphic.f90)
23- add_test (NAME real:polymorphic COMMAND $<TARGET_FILE: polymorph> )
23+ add_test (NAME real:polymorphic COMMAND polymorph)
2424
2525add_executable (epsilon epsilon.f90)
26- add_test (NAME real:epsilon COMMAND $<TARGET_FILE: epsilon> )
26+ add_test (NAME real:epsilon COMMAND epsilon)
2727
2828if (f08kind)
2929
3030 add_executable (coerce coerce.f90)
31- add_test (NAME real:coerce COMMAND $<TARGET_FILE: coerce> )
31+ add_test (NAME real:coerce COMMAND coerce)
3232
3333 add_executable (divprec div_precision.f90)
3434 add_test (NAME real:divisionPrecision COMMAND divprec)
You can’t perform that action at this time.
0 commit comments