[Openmp-commits] [llvm] [openmp] [flang-rt][CMake] Avoid 'use, intrinsic ::' (PR #205634)
Nikita Popov via Openmp-commits
openmp-commits at lists.llvm.org
Thu Jun 25 00:28:36 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
+ )
----------------
nikic wrote:
Given the other changes, is this needed?
https://github.com/llvm/llvm-project/pull/205634
More information about the Openmp-commits
mailing list