summaryrefslogtreecommitdiffstats
path: root/Help/guide/tutorial/Step5/MathFunctions/mysqrt.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2020-02-27 17:02:08 (GMT)
committerBrad King <brad.king@kitware.com>2020-02-28 15:57:45 (GMT)
commit1bc521416f12dd319b23d29f4296be7ebc7f42a2 (patch)
tree92f598af2554b354e8ff31aff3c0f9f75fe7951b /Help/guide/tutorial/Step5/MathFunctions/mysqrt.cxx
parent2a9cf889178dfc202ec84f1fece8a68594cc3566 (diff)
downloadCMake-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