diff options
author | Brad King <brad.king@kitware.com> | 2019-01-21 12:56:52 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-01-21 12:56:59 (GMT) |
commit | 177b5fb61b6d1fc64c70ea3bf65652ccad690dd5 (patch) | |
tree | 063426f0af4784163ac4a236d6e54503246566f5 /Tests/RunCMake/GeneratorExpression/NonValidTarget-Fortran_COMPILER_VERSION.cmake | |
parent | 55a2dc3055e8c5f2189c763eb3fd4c9c754d1c05 (diff) | |
parent | a080914274b32ac53f2449602811aebca7cc7d29 (diff) | |
download | CMake-177b5fb61b6d1fc64c70ea3bf65652ccad690dd5.zip CMake-177b5fb61b6d1fc64c70ea3bf65652ccad690dd5.tar.gz CMake-177b5fb61b6d1fc64c70ea3bf65652ccad690dd5.tar.bz2 |
Merge topic 'fortran-compiler-id'
a080914274 Fortran: Add compiler ID/Version generator expressions
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !2804
Diffstat (limited to 'Tests/RunCMake/GeneratorExpression/NonValidTarget-Fortran_COMPILER_VERSION.cmake')
-rw-r--r-- | Tests/RunCMake/GeneratorExpression/NonValidTarget-Fortran_COMPILER_VERSION.cmake | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/RunCMake/GeneratorExpression/NonValidTarget-Fortran_COMPILER_VERSION.cmake b/Tests/RunCMake/GeneratorExpression/NonValidTarget-Fortran_COMPILER_VERSION.cmake new file mode 100644 index 0000000..34a4884 --- /dev/null +++ b/Tests/RunCMake/GeneratorExpression/NonValidTarget-Fortran_COMPILER_VERSION.cmake @@ -0,0 +1,4 @@ +add_custom_command(OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c" + COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_SOURCE_DIR}/empty.c" "${CMAKE_CURRENT_BINARY_DIR}/copied_file$<Fortran_COMPILER_VERSION>.c" +) +add_custom_target(drive DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/copied_file.c") |