File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 3
3
4
4
include (External )
5
5
6
+ remove_definitions (-w )
7
+ remove_definitions (-Werror=date-time )
8
+
6
9
option (TEST_SUITE_FORCE_ALL "Execute all SOLLVE V&V tests, even those known to be unsupported by Clang" OFF )
7
10
8
11
set (TEST_SUITE_OFFLOADING_C_FLAGS --offload-arch=native CACHE STRING "Compiler arguments for OpenMP offloading for C" )
9
- set (TEST_SUITE_OFFLOADING_CXX_FLAGS --offload-arch=native CACHE STRING "Compiler arguments for OpenMP offloading for CXX" )
12
+ set (TEST_SUITE_OFFLOADING_CXX_FLAGS --offload-arch=native CACHE STRING "Compiler arguments for OpenMP offloading for CXX" )
10
13
set (TEST_SUITE_OFFLOADING_Fortran_FLAGS --offload-arch=native CACHE STRING "Compiler arguments for OpenMP offloading for Fortran" )
11
14
set (TEST_SUITE_OFFLOADING_C_LDFLAGS --offload-arch=native CACHE STRING "Linker arguments for OpenMP offloading" )
12
15
set (TEST_SUITE_OFFLOADING_CXX_LDFLAGS --offload-arch=native CACHE STRING "Linker arguments for OpenMP offloading" )
@@ -68,6 +71,10 @@ function (add_sollvevv LANG)
68
71
continue ()
69
72
endif ()
70
73
74
+ # Create a directory for the test
75
+ set (test_dir "${CMAKE_BINARY_DIR} /${_name} " )
76
+ file (MAKE_DIRECTORY ${test_dir} )
77
+
71
78
llvm_test_run ()
72
79
73
80
llvm_test_executable (${_name} "${TEST_SUITE_SOLLVEVV_ROOT} /tests/${_file} " )
@@ -77,6 +84,8 @@ function (add_sollvevv LANG)
77
84
# Add -fopenmp to linker command line; for some reason this is not done by target_link_libraries.
78
85
target_link_options (${_name} PRIVATE ${OpenMP_${LANG}_FLAGS} )
79
86
87
+ set_target_properties (${_name} PROPERTIES Fortran_MODULE_DIRECTORY ${test_dir} )
88
+
80
89
# CMake's find_package(OpenMP) currently does not not introspect flags necessary for offloading.
81
90
target_compile_options (${_name} PUBLIC ${TEST_SUITE_OFFLOADING_${LANG}_FLAGS} )
82
91
You can’t perform that action at this time.
0 commit comments