summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-06-16 15:44:07 (GMT)
committerBrad King <brad.king@kitware.com>2009-06-16 15:44:07 (GMT)
commit764ac9803d8f7c33fed29ef43563d894161797fa (patch)
tree15687a8b8ac50e30051825ff4173a3051f7b9ab1 /Source/cmLocalVisualStudioGenerator.h
parent0f490cf025193ccc6a10e0d1982f08d6de24d019 (diff)
downloadCMake-764ac9803d8f7c33fed29ef43563d894161797fa.zip
CMake-764ac9803d8f7c33fed29ef43563d894161797fa.tar.gz
CMake-764ac9803d8f7c33fed29ef43563d894161797fa.tar.bz2
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.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudioGenerator.h b/Source/cmLocalVisualStudioGenerator.h
index 64ce01d..bddf898 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,