mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
commit
77439d97fe
3 files changed
+11
-1
No files matched your search
@@ -834,6 +834,10 @@ bool cmGlobalVisualStudioGenerator::TargetIsFortranOnly(
|
||||
if (linkLang && *linkLang) {
|
||||
languages.insert(linkLang);
|
||||
}
|
||||
|
||||
// Intel Fortran .vfproj files do support the resource compiler.
|
||||
languages.erase("RC");
|
||||
|
||||
return languages.size() == 1 && *languages.begin() == "Fortran";
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,12 @@ add_executable(FortranOnly1 testf.f)
|
||||
set_property(TARGET FortranOnly1 PROPERTY OUTPUT_NAME FortranOnly)
|
||||
target_link_libraries(FortranOnly1 FortranOnlylib)
|
||||
|
||||
# Test that Fortran+RC work together.
|
||||
# FIXME: Add .rc in more cases.
|
||||
if(CMAKE_GENERATOR MATCHES "Visual Studio")
|
||||
set(test_rc testRC.rc)
|
||||
endif()
|
||||
|
||||
# create a custom command that runs FortranOnly1 and puts
|
||||
# the output into the file testfhello.txt
|
||||
add_custom_command(OUTPUT ${FortranOnly_BINARY_DIR}/testfhello.txt
|
||||
@@ -20,7 +26,7 @@ add_custom_command(OUTPUT ${FortranOnly_BINARY_DIR}/testfhello.txt
|
||||
# create a second executable FortranOnly2 that has
|
||||
# testfhello.txt has an source file so that it will
|
||||
# run the above custom command.
|
||||
add_executable(FortranOnly2 testfhello.txt testf.f)
|
||||
add_executable(FortranOnly2 testfhello.txt testf.f ${test_rc})
|
||||
target_link_libraries(FortranOnly2 FortranOnlylib)
|
||||
# create a custom target to check the content of testfhello.txt
|
||||
# by running the cmake script checktestf2.cmake
|
||||
|
||||
Whitespace-only changes.
Reference in new issue
Block a user