File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -124,9 +124,8 @@ endif ()
124124set (OPENMP_TEST_Fortran_COMPILER "${OPENMP_TEST_Fortran_COMPILER_default} " CACHE STRING
125125 "Fortran compiler to use for testing OpenMP runtime libraries." )
126126
127- if (CMAKE_Fortran_COMPILER AND NOT LLVM_RUNTIMES_BUILD)
128- message (WARNING "Building omp_lib.mod requires using LLVM_ENABLE_RUNTIMES=flang-rt\\\; openmp" )
129- endif ()
127+ set (LIBOMP_FORTRAN_MODULES FALSE CACHE BOOL
128+ "Create Fortran module files? (requires fortran compiler)" )
130129
131130# Set up testing infrastructure.
132131include (OpenMPTesting)
@@ -172,6 +171,8 @@ if("${LLVM_DEFAULT_TARGET_TRIPLE}" MATCHES "^amdgcn|^nvptx" OR
172171 "${CMAKE_CXX_COMPILER_TARGET} " MATCHES "^amdgcn|^nvptx" )
173172 add_subdirectory (device)
174173else ()
174+ add_subdirectory (module)
175+
175176 # Build host runtime library, after LIBOMPTARGET variables are set since they
176177 # are needed to enable time profiling support in the OpenMP runtime.
177178 add_subdirectory (runtime)
You can’t perform that action at this time.
0 commit comments