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 33
44include (External)
55
6+ remove_definitions (-w)
7+ remove_definitions (-Werror=date-time)
8+
69option (TEST_SUITE_FORCE_ALL "Execute all SOLLVE V&V tests, even those known to be unsupported by Clang" OFF )
710
811set (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" )
1013set (TEST_SUITE_OFFLOADING_Fortran_FLAGS --offload-arch=native CACHE STRING "Compiler arguments for OpenMP offloading for Fortran" )
1114set (TEST_SUITE_OFFLOADING_C_LDFLAGS --offload-arch=native CACHE STRING "Linker arguments for OpenMP offloading" )
1215set (TEST_SUITE_OFFLOADING_CXX_LDFLAGS --offload-arch=native CACHE STRING "Linker arguments for OpenMP offloading" )
@@ -68,6 +71,10 @@ function (add_sollvevv LANG)
6871 continue ()
6972 endif ()
7073
74+ # Create a directory for the test
75+ set (test_dir "${CMAKE_BINARY_DIR} /${_name} " )
76+ file (MAKE_DIRECTORY ${test_dir} )
77+
7178 llvm_test_run()
7279
7380 llvm_test_executable(${_name} "${TEST_SUITE_SOLLVEVV_ROOT} /tests/${_file} " )
@@ -77,6 +84,8 @@ function (add_sollvevv LANG)
7784 # Add -fopenmp to linker command line; for some reason this is not done by target_link_libraries.
7885 target_link_options (${_name} PRIVATE ${OpenMP_${LANG} _FLAGS})
7986
87+ set_target_properties (${_name} PROPERTIES Fortran_MODULE_DIRECTORY ${test_dir} )
88+
8089 # CMake's find_package(OpenMP) currently does not not introspect flags necessary for offloading.
8190 target_compile_options (${_name} PUBLIC ${TEST_SUITE_OFFLOADING_${LANG} _FLAGS})
8291
You can’t perform that action at this time.
0 commit comments