diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-04-11 14:15:55 +0200 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2015-04-15 11:43:50 -0400 |
commit | 5d056c0dd85934e7a985cb49f97c343e38f20929 (patch) | |
tree | b3a091e3886ba1de176fcfac7d93075a01310e22 /Source/cmAddLibraryCommand.cxx | |
parent | de722d7d63866613aaa8105b52ee90ffe2721136 (diff) | |
download | cmake-5d056c0dd85934e7a985cb49f97c343e38f20929.tar.gz |
Port Global property interaction to cmState.
Diffstat (limited to 'Source/cmAddLibraryCommand.cxx')
-rw-r--r-- | Source/cmAddLibraryCommand.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmAddLibraryCommand.cxx b/Source/cmAddLibraryCommand.cxx index edf82bdbc3..74e1a93f44 100644 --- a/Source/cmAddLibraryCommand.cxx +++ b/Source/cmAddLibraryCommand.cxx @@ -12,6 +12,7 @@ #include "cmAddLibraryCommand.h" #include "cmake.h" +#include "cmState.h" // cmLibraryCommand bool cmAddLibraryCommand @@ -330,7 +331,7 @@ bool cmAddLibraryCommand yet its linker language. */ if ((type == cmTarget::SHARED_LIBRARY || type == cmTarget::MODULE_LIBRARY) && - (this->Makefile->GetCMakeInstance()->GetPropertyAsBool( + (this->Makefile->GetState()->GetGlobalPropertyAsBool( "TARGET_SUPPORTS_SHARED_LIBS") == false)) { std::ostringstream w; |