throw an error is PREFIX isnt defined on X11 systems. defaults to /usr/local
authorCampbell Barton <ideasman42@gmail.com>
Mon, 1 Nov 2010 22:26:56 +0000 (22:26 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Mon, 1 Nov 2010 22:26:56 +0000 (22:26 +0000)
intern/ghost/SConscript
intern/ghost/intern/GHOST_SystemX11.cpp

index 25880e9679b2654f3693cfde926af7ea8f188b5c..e6190c50577938c9723d76dbdc4ef9cc9d3e5ba9 100644 (file)
@@ -21,6 +21,8 @@ if window_system in ('linux2', 'openbsd3', 'sunos5', 'freebsd7', 'freebsd8', 'fr
             sources.remove('intern' + os.sep + f + 'Carbon.cpp')
         except ValueError:
             pass
+    defs += ['PREFIX=\\"/usr/local/\\"']
+
 elif window_system in ('win32-vc', 'win32-mingw', 'cygwin', 'linuxcross', 'win64-vc'):
     for f in pf:
         try:
index 393761566baf01110b0d652bf6f48bd9b95f18f5..5f7c59fa5e64bbad5adb880693e9ab3fd245ebbe 100644 (file)
@@ -68,7 +68,7 @@
 #include <cstdlib> // for exit
 
 #ifndef PREFIX
-#  define PREFIX "/usr/local"
+#error "PREFIX not defined"
 #endif
 
 typedef struct NDOFPlatformInfo {