diff options
author | Brad King <brad.king@kitware.com> | 2009-06-16 11:44:07 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-06-16 11:44:07 -0400 |
commit | 764ac9803d8f7c33fed29ef43563d894161797fa (patch) | |
tree | 15687a8b8ac50e30051825ff4173a3051f7b9ab1 /Source/cmLocalVisualStudioGenerator.h | |
parent | 0f490cf025193ccc6a10e0d1982f08d6de24d019 (diff) | |
download | cmake-764ac9803d8f7c33fed29ef43563d894161797fa.tar.gz |
ENH: Generalize exe implib dir creation for VS
In VS 7,8,9 executable targets we generate a build event to create the
output directory for the import library in case the executable marks
symbols with dllexport (VS forgets to create this directory). This
generalizes computation of the custom command line to support future use
with other VS versions.
Diffstat (limited to 'Source/cmLocalVisualStudioGenerator.h')
-rw-r--r-- | Source/cmLocalVisualStudioGenerator.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.h b/Source/cmLocalVisualStudioGenerator.h index 64ce01ddfc..bddf898b64 100644 --- a/Source/cmLocalVisualStudioGenerator.h +++ b/Source/cmLocalVisualStudioGenerator.h @@ -19,6 +19,8 @@ #include "cmLocalGenerator.h" +#include <cmsys/auto_ptr.hxx> + class cmSourceFile; class cmSourceGroup; @@ -35,6 +37,10 @@ public: virtual ~cmLocalVisualStudioGenerator(); protected: + /** Construct a custom command to make exe import lib dir. */ + cmsys::auto_ptr<cmCustomCommand> + MaybeCreateImplibDir(cmTarget& target, const char* config); + /** Construct a script from the given list of command lines. */ std::string ConstructScript(const cmCustomCommandLines& commandLines, const char* workingDirectory, |