summaryrefslogtreecommitdiff
path: root/libcuda
diff options
context:
space:
mode:
Diffstat (limited to 'libcuda')
-rw-r--r--libcuda/Makefile3
1 files changed, 1 insertions, 2 deletions
diff --git a/libcuda/Makefile b/libcuda/Makefile
index e28ae83..399a533 100644
--- a/libcuda/Makefile
+++ b/libcuda/Makefile
@@ -60,13 +60,12 @@
# Vancouver, BC V6T 1Z4
-CUDART_VERSION:=$(shell $(CUDA_INSTALL_PATH)/bin/nvcc --version | awk '/release/ {print $$5;}' | sed 's/,//' | sed 's/\./ /' | awk '{printf("%02u%02u", 10*int($$1), 10*$$2);}')
+include ../version_detection.mk
ifeq ($(OPENGL_SUPPORT),1)
GL = -DOPENGL_SUPPORT
endif
-GNUC_CPP0X := $(shell gcc --version | perl -ne 'if (/gcc\s+\(.*\)\s+([0-9.]+)/){ if($$1 >= 4.3) {$$n=1} else {$$n=0;} } END { print $$n; }')
ifeq ($(GNUC_CPP0X), 1)
CXXFLAGS = -std=c++0x
endif