]> git.proxmox.com Git - libgit2.git/commit - CMakeLists.txt
Don't use precompiled headers for command-line based VC builds.
authorSascha Cunz <Sascha@BabbelBox.org>
Mon, 19 Nov 2012 03:40:58 +0000 (04:40 +0100)
committerSascha Cunz <Sascha@BabbelBox.org>
Mon, 19 Nov 2012 04:00:02 +0000 (05:00 +0100)
commit26d9e317db361f990ecf977a99acae0a4ba4bd02
treeda255d18b2c74522778c167a9ad3fae0085684b6
parent560cc1e1ed0fb29679c32434490446bb6fd5dc17
Don't use precompiled headers for command-line based VC builds.

The reason, why libgit2 currently cannot support compiling via the command-line
tools cl/nmake from WinSDK and/or Microsoft Visual Studio, seems to be a
missing dependency on the generated precompiled header file.

The Visual Studio IDE automatically inserts this dependency when it sees the
right combination of "/Y" parameters.

This patch allows to compile using command line tools by disabling precompiled
headers for NON-IDE builds.
CMakeLists.txt