fix osx 10.9 condition in Makefile
authorEvan Shelhamer <shelhamer@imaginarynumber.net>
Wed, 9 Apr 2014 22:44:07 +0000 (15:44 -0700)
committerEvan Shelhamer <shelhamer@imaginarynumber.net>
Wed, 9 Apr 2014 22:44:07 +0000 (15:44 -0700)
Makefile

index 9de7379..5a365a0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -163,7 +163,7 @@ endif
 # libstdc++ instead of libc++ for CUDA compatibility on 10.9
 ifeq ($(OSX), 1)
        CXX := /usr/bin/clang++
-       ifneq ($(findstring $(shell sw_vers -productVersion), 10.9),)
+       ifneq ($(findstring 10.9, $(shell sw_vers -productVersion)),)
                CXXFLAGS += -stdlib=libstdc++
        endif
 endif