diff options
author | Asit Dhal <dhal.asitk@gmail.com> | 2021-07-11 18:33:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-07-12 15:19:01 (GMT) |
commit | 542bd343e3eb5b824046649c0335a56dd2497f8e (patch) | |
tree | 237963c93a6f2c1a44cbc867949be843d74ba02c /Source/cmLocalVisualStudioGenerator.cxx | |
parent | 3c521b89f1a4d10a55a142d74e4eab02716943a0 (diff) | |
download | CMake-542bd343e3eb5b824046649c0335a56dd2497f8e.zip CMake-542bd343e3eb5b824046649c0335a56dd2497f8e.tar.gz CMake-542bd343e3eb5b824046649c0335a56dd2497f8e.tar.bz2 |
VS: Always enable CMAKE_MSVCIDE_RUN_PATH
Do not require a language to be enabled.
Fixes: #22343
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.cxx')
-rw-r--r-- | Source/cmLocalVisualStudioGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.cxx b/Source/cmLocalVisualStudioGenerator.cxx index 002f484..46f9d31 100644 --- a/Source/cmLocalVisualStudioGenerator.cxx +++ b/Source/cmLocalVisualStudioGenerator.cxx @@ -171,7 +171,7 @@ std::string cmLocalVisualStudioGenerator::ConstructScript( // for visual studio IDE add extra stuff to the PATH // if CMAKE_MSVCIDE_RUN_PATH is set. - if (this->Makefile->GetDefinition("MSVC_IDE")) { + if (this->GetGlobalGenerator()->IsVisualStudio()) { cmProp extraPath = this->Makefile->GetDefinition("CMAKE_MSVCIDE_RUN_PATH"); if (extraPath) { script += newline; |