diff options
author | Brad King <brad.king@kitware.com> | 2020-02-27 17:02:08 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-02-28 15:57:45 (GMT) |
commit | 1bc521416f12dd319b23d29f4296be7ebc7f42a2 (patch) | |
tree | 92f598af2554b354e8ff31aff3c0f9f75fe7951b /Help/guide/tutorial/Step5/MathFunctions/mysqrt.cxx | |
parent | 2a9cf889178dfc202ec84f1fece8a68594cc3566 (diff) | |
download | CMake-1bc521416f12dd319b23d29f4296be7ebc7f42a2.zip CMake-1bc521416f12dd319b23d29f4296be7ebc7f42a2.tar.gz CMake-1bc521416f12dd319b23d29f4296be7ebc7f42a2.tar.bz2 |
CheckFortranSource*: Avoid passing -DVAR to linker
The test project is compiled with a `-DVAR` compiler flag where `VAR` is
the result variable. Tell `try_compile` to add the flag through
`add_definitions` instead of `CMAKE_Fortran_FLAGS` so that it is not
used for linking. Otherwise some Fortran compilers (e.g. XL 15) do not
like the flag when used to drive linking.
Diffstat (limited to 'Help/guide/tutorial/Step5/MathFunctions/mysqrt.cxx')
0 files changed, 0 insertions, 0 deletions