summaryrefslogtreecommitdiff
path: root/liborcus
diff options
context:
space:
mode:
authorTor Lillqvist <tlillqvist@suse.com>2012-12-14 00:15:43 +0200
committerTor Lillqvist <tml@iki.fi>2012-12-14 00:19:55 +0200
commit5c19504b50a7098070ddee0dda9d3d28254bfe75 (patch)
tree1d3f9a00b69e0683ab85ebe358c1d5aea831a314 /liborcus
parent1d486e6c65806a9ca4b9e06504056cc16f687475 (diff)
Make MSBuild actually run the 2012 compiler when that is what we use
The /p:PlatformToolset=v110 /p:VisualStudioVersion=11.0 options are needed to indicate that we want that. Otherwise MSBuild, when presented with a .vcxproj file created by VS2010, will assume it is the 2010 compiler that should be used. This will then lead to link errors pointing outthe incompatibility when linking the static liborcus into the scfilt DLL.
Diffstat (limited to 'liborcus')
-rw-r--r--liborcus/ExternalProject_liborcus.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/liborcus/ExternalProject_liborcus.mk b/liborcus/ExternalProject_liborcus.mk
index 9de89dabba56..595049ba916e 100644
--- a/liborcus/ExternalProject_liborcus.mk
+++ b/liborcus/ExternalProject_liborcus.mk
@@ -27,7 +27,7 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) :
&& export BOOST_LIB_DIR=$(OUTDIR)/lib \
&& $(COMPATH)/vcpackages/vcbuild.exe liborcus-static-nozip.vcproj "Release|Win32" \
&& touch $@
-else
+else ifeq ($(VCVER),100)
$(call gb_ExternalProject_get_state_target,liborcus,build) :
cd $(EXTERNAL_WORKDIR)/vsprojects/liborcus-static-nozip \
&& export BOOST_INCLUDE_DIR=$(OUTDIR)/inc/external \
@@ -35,6 +35,14 @@ $(call gb_ExternalProject_get_state_target,liborcus,build) :
&& export BOOST_LIB_DIR=$(OUTDIR)/lib \
&& MSBuild.exe liborcus-static-nozip.vcxproj /p:Configuration=Release /p:OutDir=Release/ /p:TargetName=orcus /p:WholeProgramOptimization=no \
&& touch $@
+else
+$(call gb_ExternalProject_get_state_target,liborcus,build) :
+ cd $(EXTERNAL_WORKDIR)/vsprojects/liborcus-static-nozip \
+ && export BOOST_INCLUDE_DIR=$(OUTDIR)/inc/external \
+ && export ZLIB_INCLUDE_DIR=$(OUTDIR)/inc/external/zlib \
+ && export BOOST_LIB_DIR=$(OUTDIR)/lib \
+ && MSBuild.exe liborcus-static-nozip.vcxproj /p:PlatformToolset=v110 /p:VisualStudioVersion=11.0 /p:Configuration=Release /p:OutDir=Release/ /p:TargetName=orcus /p:WholeProgramOptimization=no \
+ && touch $@
endif
else