cbfbb86b58
Makefile dependencies must be escaped using cmLocalGenerator::Convert with the cmLocalGenerator::MAKEFILE option. This fixes Fortran module dependencies with spaces in the path. We test the fix by adding a space to one of the module paths in the Fortran test.
9 lines
295 B
CMake
9 lines
295 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)
|
|
add_dependencies(subdir_exe2 ExternalTarget)
|
|
target_link_libraries(subdir_exe2 myext)
|