summaryrefslogtreecommitdiffstats
path: root/RepositoryExternal.mk
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-06 04:42:44 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2014-01-29 08:09:37 +0100
commit03a5d0472fb9012c0b586a07953a843f8e5374f9 (patch)
tree2314cc7c9b27d4b39293fe1a1292562640118a44 /RepositoryExternal.mk
parentmake glew a normal external shared project (diff)
downloadcore-03a5d0472fb9012c0b586a07953a843f8e5374f9.tar.gz
core-03a5d0472fb9012c0b586a07953a843f8e5374f9.zip
fix windows build of glew
Change-Id: I8aab94aefd737195a26696635f52f754764ea1b4
Diffstat (limited to 'RepositoryExternal.mk')
-rw-r--r--RepositoryExternal.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/RepositoryExternal.mk b/RepositoryExternal.mk
index f8ce0a70ba6c..7e8bb353bb05 100644
--- a/RepositoryExternal.mk
+++ b/RepositoryExternal.mk
@@ -139,9 +139,15 @@ $(call gb_LinkTarget_set_include,$(1),\
$$(INCLUDE) \
)
+ifeq ($(COM),MSC)
+$(call gb_LinkTarget_add_libs,$(1),\
+ $(call gb_UnpackedTarball_get_dir,glew)/lib/$(if $(MSVC_USE_DEBUG_RUNTIME),Debug/Win32/glew32d.lib,Release/Win32/glew32.lib) \
+)
+else
$(call gb_LinkTarget_add_libs,$(1),\
-L$(call gb_UnpackedTarball_get_dir,glew)/lib/ -lGLEW \
)
+endif
endef