Skip to content

Commit a6f6228

Browse files
authored
CMake: set fortran module directory for static
1 parent d3bd452 commit a6f6228

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

runtime/flang/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,11 @@ add_flang_library(flang_static
486486
${SHARED_SOURCES}
487487
)
488488

489+
set_target_properties(flang_static
490+
PROPERTIES
491+
Fortran_MODULE_DIRECTORY ${CMAKE_BINARY_DIR}/include-static
492+
)
493+
489494
if (MSVC)
490495
set_property(TARGET flang_static PROPERTY OUTPUT_NAME libflang)
491496
else()

0 commit comments

Comments
 (0)