File tree Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Expand file tree Collapse file tree 2 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,8 @@ if("${LIBOMP_ARCH}" STREQUAL "mic")
111111endif ()
112112set (LIBOMP_FORTRAN_MODULES "${RUNTIMES_FLANG_MODULES_ENABLED} " CACHE BOOL
113113 "Create Fortran module files? (requires fortran compiler)" )
114+ message ("OpenMP: RUNTIMES_FLANG_MODULES_ENABLED=${RUNTIMES_FLANG_MODULES_ENABLED} " )
115+ message ("OpenMP: LIBOMP_FORTRAN_MODULES=${LIBOMP_FORTRAN_MODULES} " )
114116
115117# - Support for universal fat binary builds on Mac
116118# - Having this extra variable allows people to build this library as a universal library
Original file line number Diff line number Diff line change @@ -458,10 +458,15 @@ if(${LIBOMP_OMPT_SUPPORT})
458458endif ()
459459
460460
461+ include (CMakePrintHelpers)
462+
461463# Build the modules files if a Fortran compiler is available.
462464# Only LLVM_ENABLE_RUNTIMES=openmp is supported, LLVM_ENABLE_PROJECTS=openmp
463465# has been deprecated.
466+ message ("OpenMP2: RUNTIMES_FLANG_MODULES_ENABLED=${RUNTIMES_FLANG_MODULES_ENABLED} " )
467+ message ("OpenMP2: LIBOMP_FORTRAN_MODULES=${LIBOMP_FORTRAN_MODULES} " )
464468if (LIBOMP_FORTRAN_MODULES)
469+ message ("OpenMP2: Adding libomp-mod targets" )
465470 add_library (libomp-mod OBJECT
466471 omp_lib.F90
467472 )
@@ -484,4 +489,24 @@ if(LIBOMP_FORTRAN_MODULES)
484489 ${CMAKE_CURRENT_BINARY_DIR} /omp_lib.h
485490 DESTINATION ${destination}
486491 )
492+
493+ #cmake_print_properties(TARGETS libomp-mod)
487494endif ()
495+ cmake_print_variables(RUNTIMES_FLANG_MODULES_ENABLED LIBOMP_FORTRAN_MODULES RUNTIMES_FLANG_MODULES_ENABLED_default RUNTIMES_OUTPUT_RESOURCE_MOD_DIR RUNTIMES_INSTALL_RESOURCE_MOD_PATH)
496+
497+ if (EXISTS "${CMAKE_BINARY_DIR} /CMakeCache.txt" )
498+ file (READ "${CMAKE_BINARY_DIR} /CMakeCache.txt" _outcache)
499+ message ("CMakeCache.txt:\n ${_outcache} " )
500+ else ()
501+ message ("No cache file" )
502+ endif ()
503+
504+
505+ if (EXISTS "${CMAKE_BINARY_DIR} /CMakeFiles/CMakeConfigureLog.yaml" )
506+ file (READ "${CMAKE_BINARY_DIR} /CMakeFiles/CMakeConfigureLog.yaml" _outcache)
507+ message ("CMakeConfigureLog.yaml:\n ${_outcache} " )
508+ else ()
509+ message ("No CMakeConfigureLog.yaml" )
510+ endif ()
511+
512+
You can’t perform that action at this time.
0 commit comments