diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 10:52:14 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-15 15:43:49 (GMT) |
commit | 0aec49132885be07e1d92a4a1db58f4c6c4c2844 (patch) | |
tree | ba5db3057c7431795a8aa9762f0cfbc5f252e406 /Source/cmCPluginAPI.cxx | |
parent | 96f8c5f9a3bd60f553af054b43e06ce4864269e0 (diff) | |
download | CMake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.zip CMake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.tar.gz CMake-0aec49132885be07e1d92a4a1db58f4c6c4c2844.tar.bz2 |
Port cmCommand consumers to cmState.
Diffstat (limited to 'Source/cmCPluginAPI.cxx')
-rw-r--r-- | Source/cmCPluginAPI.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmCPluginAPI.cxx b/Source/cmCPluginAPI.cxx index 6134c6f..77cd6c6 100644 --- a/Source/cmCPluginAPI.cxx +++ b/Source/cmCPluginAPI.cxx @@ -164,7 +164,7 @@ int CCONV cmIsOn(void *arg, const char* name) int CCONV cmCommandExists(void *arg, const char* name) { cmMakefile *mf = static_cast<cmMakefile *>(arg); - return static_cast<int>(mf->CommandExists(name)); + return static_cast<int>(mf->GetState()->GetCommand(name) ? 1 : 0); } void CCONV cmAddDefineFlag(void *arg, const char* definition) |