@@ -109,7 +109,7 @@ set(LIBOMP_MIC_ARCH knc CACHE STRING
109109if ("${LIBOMP_ARCH} " STREQUAL "mic" )
110110 libomp_check_variable(LIBOMP_MIC_ARCH knf knc)
111111endif ()
112- set (LIBOMP_FORTRAN_MODULES FALSE CACHE BOOL
112+ set (LIBOMP_FORTRAN_MODULES " ${RUNTIMES_FLANG_MODULES_ENABLED} " CACHE BOOL
113113 "Create Fortran module files? (requires fortran compiler)" )
114114
115115# - Support for universal fat binary builds on Mac
@@ -147,8 +147,6 @@ else()
147147 set (LIBOMP_LIBFLAGS "" CACHE STRING
148148 "Appended user specified linked libs flags. (e.g., -lm)" )
149149endif ()
150- set (LIBOMP_FFLAGS "" CACHE STRING
151- "Appended user specified Fortran compiler flags. These are only used if LIBOMP_FORTRAN_MODULES==TRUE." )
152150
153151# Should the libomp library and generated headers be copied into the original source exports/ directory
154152# Turning this to FALSE aids parallel builds to not interfere with each other.
@@ -272,10 +270,6 @@ set(LIBOMP_TOOLS_DIR ${LIBOMP_BASE_DIR}/tools)
272270set (LIBOMP_INC_DIR ${LIBOMP_SRC_DIR} /include )
273271set (LIBOMP_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR} )
274272
275- # Enabling Fortran if it is needed
276- if (${LIBOMP_FORTRAN_MODULES} )
277- enable_language (Fortran)
278- endif ()
279273# Enable MASM Compiler if it is needed (Windows only)
280274if (WIN32 )
281275 enable_language (ASM_MASM)
0 commit comments