[Openmp-commits] [llvm] [openmp] [flang-rt][CMake] Avoid 'use, intrinsic ::' (PR #205634)
Michael Kruse via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 25 02:22:46 PDT 2026
================
@@ -244,6 +238,20 @@ function (flang_module_target tgtname)
"$<$<COMPILE_LANGUAGE:Fortran>:-fintrinsic-modules-path=${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR}>"
)
+ # Make CMake not ignore "use, intrinsic ::"-dependencies
+ # Only considered by
+ # * CMake >= 3.22 with the "Unix Makefiles" generator
+ # * CMake >= 4.5 with the Ninja generator
+ set_target_properties(${tgtname}
+ PROPERTIES
+ Fortran_BUILDING_INTRINSIC_MODULES ON
+ Fortran_BUILDING_INSTRINSIC_MODULES ON
+ )
----------------
Meinersbur wrote:
No, not strictly. However, I thought we may keep it because it is the behaviour we actually want from CMake, just not all versions implement it yet.
https://github.com/llvm/llvm-project/pull/205634
More information about the Openmp-commits
mailing list