c5eb21b6d1
Refactoring in commit v3.5.0-rc1~347^2~2 (Set the current dirs on the snapshot before creating the cmMakefile) accidentally changed the source and binary directories configured in `cmake -E cmake_depends` for use during dependency scanning. This can cause the wrong directory information to be loaded. It also breaks Fortran module dependency scanning for modules provided by targets in subdirectories that do not have Fortran_MODULE_DIRECTORY set. Fix the dependency scanning directory configuration and add a test to cover the Fortran module case in which the breakage was observed. Reported-by: Kelly Thompson <kgt@lanl.gov>
9 lines
308 B
CMake
9 lines
308 B
CMake
include_directories(${Library_MODDIR})
|
|
include_directories(${External_BINARY_DIR})
|
|
link_directories(${External_BINARY_DIR})
|
|
|
|
add_executable(subdir_exe2 main.f90)
|
|
target_link_libraries(subdir_exe2 subdir_mods subdir_mods2)
|
|
add_dependencies(subdir_exe2 ExternalTarget)
|
|
target_link_libraries(subdir_exe2 myext)
|