diff options
author | Brad King <brad.king@kitware.com> | 2006-10-05 19:08:20 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2006-10-05 19:08:20 (GMT) |
commit | 7ad07e081110923483ae6b428c469a12408ef87d (patch) | |
tree | 6f369b445e6ada954464596c952dbae4c094fa6c /Source/cmLocalGenerator.cxx | |
parent | 7e92f0b4e449057bff26579596ccd11ee8c3c7e3 (diff) | |
download | CMake-7ad07e081110923483ae6b428c469a12408ef87d.zip CMake-7ad07e081110923483ae6b428c469a12408ef87d.tar.gz CMake-7ad07e081110923483ae6b428c469a12408ef87d.tar.bz2 |
BUG: Fix link flags on cygwin shared libraries. This requires that the shared library prefix be supported in the link library regex.
Diffstat (limited to 'Source/cmLocalGenerator.cxx')
-rw-r--r-- | Source/cmLocalGenerator.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmLocalGenerator.cxx b/Source/cmLocalGenerator.cxx index 890e905..84b4902 100644 --- a/Source/cmLocalGenerator.cxx +++ b/Source/cmLocalGenerator.cxx @@ -1712,8 +1712,10 @@ void cmLocalGenerator orderLibs.SetLinkTypeInformation(cmOrderLinkDirectories::LinkShared, static_link_type_flag, shared_link_type_flag); - orderLibs.SetLinkPrefix( + orderLibs.AddLinkPrefix( this->Makefile->GetDefinition("CMAKE_STATIC_LIBRARY_PREFIX")); + orderLibs.AddLinkPrefix( + this->Makefile->GetDefinition("CMAKE_SHARED_LIBRARY_PREFIX")); orderLibs.AddLinkExtension( this->Makefile->GetDefinition("CMAKE_STATIC_LIBRARY_SUFFIX"), cmOrderLinkDirectories::LinkStatic); |