better clang search webgl
authorkoda
Sun, 11 Nov 2012 16:53:16 +0100
branchwebgl
changeset 8023 7de85783b823
parent 8020 00b1facf2805
child 8026 4a4f21070479
better clang search
project_files/hwc/CMakeLists.txt
--- a/project_files/hwc/CMakeLists.txt	Sun Nov 11 16:44:40 2012 +0100
+++ b/project_files/hwc/CMakeLists.txt	Sun Nov 11 16:53:16 2012 +0100
@@ -2,7 +2,9 @@
 if(CLANG)
     set(clang_executable ${CLANG})
 else()
-    find_program(clang_executable clang-mp clang-mp-3.2 clang-mp-3.1 clang-mp-3.0 clang)
+    find_program(clang_executable
+        NAMES clang-mp-3.2 clang-mp-3.1 clang-mp-3.0 clang
+        PATHS /opt/local/bin /usr/local/bin /usr/bin)
 endif()
 
 if (clang_executable)