File tree Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Expand file tree Collapse file tree 3 files changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -329,10 +329,11 @@ function (add_flangrt_library name)
329
329
endif ()
330
330
endforeach ()
331
331
332
+ message ("${name} RUNTIMES_OUTPUT_RESOURCE_MOD_DIR: ${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR} " )
332
333
foreach (tgtname IN LISTS srctargets )
333
334
set_target_properties (${tgtname}
334
335
PROPERTIES
335
- Fortran_MODULE_DIRECTORY "${FLANG_RT_OUTPUT_RESOURCE_MOD_DIR } "
336
+ Fortran_MODULE_DIRECTORY "${RUNTIMES_OUTPUT_RESOURCE_MOD_DIR } "
336
337
)
337
338
338
339
target_compile_options (${tgtname} PRIVATE ${ARG_COMPILE_OPTIONS} )
Original file line number Diff line number Diff line change @@ -471,7 +471,7 @@ endif ()
471
471
omp_lib.F90
472
472
)
473
473
flang_module_target (libomp-mod )
474
- add_dependencies (libomp-mod flang-rt-mod )
474
+ add_dependencies (libomp-mod flang-rt-mod )
475
475
476
476
libomp_get_fflags (LIBOMP_CONFIGURED_FFLAGS )
477
477
target_compile_options (libomp-mod PRIVATE ${LIBOMP_CONFIGURED_FFLAGS} )
Original file line number Diff line number Diff line change @@ -61,11 +61,6 @@ function(runtime_register_component name)
61
61
set_property (GLOBAL APPEND PROPERTY SUB_COMPONENTS ${name} )
62
62
endfunction ()
63
63
64
-
65
-
66
-
67
-
68
-
69
64
find_package (LLVM PATHS "${LLVM_BINARY_DIR} " NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH )
70
65
find_package (Clang PATHS "${LLVM_BINARY_DIR} " NO_DEFAULT_PATH NO_CMAKE_FIND_ROOT_PATH )
71
66
@@ -356,7 +351,7 @@ macro(flang_module_fortran_enable)
356
351
# For the install prefix, still use the resource dir assuming that Flang will
357
352
# be installed there using the same prefix. This is to not have a difference
358
353
# between bootstrap and standalone runtimes builds.
359
- set (RUNTIMES_OUTPUT_RESOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR } " )
354
+ set (RUNTIMES_OUTPUT_RESOURCE_DIR "${CMAKE_BINARY_DIR } " )
360
355
set (RUNTIMES_INSTALL_RESOURCE_PATH_DEFAULT "lib${LLVM_LIBDIR_SUFFIX} /clang/${LLVM_VERSION_MAJOR} " )
361
356
362
357
extend_path (RUNTIMES_OUTPUT_RESOURCE_MOD_DIR "${RUNTIMES_OUTPUT_RESOURCE_DIR} " "finclude" )
@@ -366,7 +361,7 @@ macro(flang_module_fortran_enable)
366
361
if (LLVM_TREE_AVAILABLE )
367
362
set (RUNTIMES_OUTPUT_RESOURCE_MOD_DIR "${LLVM_LIBRARY_OUTPUT_INTDIR} /../finclude-${CMAKE_Fortran_COMPILER_ID} " )
368
363
else ()
369
- set (RUNTIMES_OUTPUT_RESOURCE_MOD_DIR "${CMAKE_CURRENT_BINARY_DIR } /finclude-${CMAKE_Fortran_COMPILER_ID} " )
364
+ set (RUNTIMES_OUTPUT_RESOURCE_MOD_DIR "${CMAKE_BINARY_DIR } /finclude-${CMAKE_Fortran_COMPILER_ID} " )
370
365
endif ()
371
366
set (RUNTIMES_INSTALL_RESOURCE_MOD_PATH "finclude-${CMAKE_Fortran_COMPILER_ID} " )
372
367
endif ()
You can’t perform that action at this time.
0 commit comments