summaryrefslogtreecommitdiffstats
path: root/Tests/Tutorial/Step2/MathFunctions/MathFunctions.h
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2010-12-17 20:43:16 (GMT)
committerDavid Cole <david.cole@kitware.com>2010-12-17 21:01:19 (GMT)
commit984acc884ba4c21192712c20b7820d94ad855605 (patch)
treee3e0e087ae53236b6ef98e8a2bcfe563aedaa4a2 /Tests/Tutorial/Step2/MathFunctions/MathFunctions.h
parentd11c70295b072d19c90c3e5d415d27de10253615 (diff)
downloadCMake-984acc884ba4c21192712c20b7820d94ad855605.zip
CMake-984acc884ba4c21192712c20b7820d94ad855605.tar.gz
CMake-984acc884ba4c21192712c20b7820d94ad855605.tar.bz2
VS10: avoid warning, no nologo when verbose (#10587)
For prior versions of Visual Studio we would intentionally pass "/nologo-" for "verbose makefiles" (CMAKE_VERBOSE_MAKEFILE ON) when the caller did not already explicitly specify either /nologo or /nologo-. And we still do. For the prior versions. This had the side effect of always passing /nologo- for try_compile operations because try_compile generates projects that have verbose makefiles on. However, starting with Visual Studio 10, the compiler emits "cl ... warning D9035: option 'nologo-' has been deprecated" when passed "/nologo-". Therefore, this commit removes setting "/nologo-" for verbose makefiles in the Visual Studio 10 case to avoid emitting a warning for every single invocation of the compiler in a given build. With Visual Studio 10, we do not set this flag either way and therefore, the generated project has no value for this setting and gets Visual Studio's default value, which is of course "/nologo", which does not produce a warning. With Visual Studio 10, a caller can still force "/nologo-" if desired by adding it explicitly to CMAKE_C_FLAGS or CMAKE_CXX_FLAGS.
Diffstat (limited to 'Tests/Tutorial/Step2/MathFunctions/MathFunctions.h')
0 files changed, 0 insertions, 0 deletions