add support for clang 3.3 (although there has to be a better way for this) and output right version number webgl
authorkoda
Wed, 20 Feb 2013 02:21:58 +0100
branchwebgl
changeset 8450 404ddce27b23
parent 8448 14f736ca7eb3
child 8833 c13ebed437cb
add support for clang 3.3 (although there has to be a better way for this) and output right version number
CMakeLists.txt
cmake_modules/FindClang.cmake
--- a/CMakeLists.txt	Wed Feb 20 02:21:14 2013 +0100
+++ b/CMakeLists.txt	Wed Feb 20 02:21:58 2013 +0100
@@ -78,7 +78,7 @@
     find_package(Clang)
     # Check LLVM/Clang version
 	if (CLANG_VERSION VERSION_LESS required_clang_version)
-		message(FATAL_ERROR "LLVM/Clang compiler required version is ${REQUIRED_CLANG_VERSION} but version ${CLANG_VERSION} was found!")
+		message(FATAL_ERROR "LLVM/Clang compiler required version is ${required_clang_version} but version ${CLANG_VERSION} was found!")
 	else()
 		message(STATUS "Found CLANG: ${CLANG_EXECUTABLE} (version ${CLANG_VERSION})")
 	endif()
--- a/cmake_modules/FindClang.cmake	Wed Feb 20 02:21:14 2013 +0100
+++ b/cmake_modules/FindClang.cmake	Wed Feb 20 02:21:58 2013 +0100
@@ -3,7 +3,7 @@
     set(CLANG_EXECUTABLE ${CLANG})
 else()
     find_program(CLANG_EXECUTABLE
-        NAMES clang-mp-3.2 clang-mp-3.1 clang-mp-3.0 clang
+        NAMES clang-mp-3.3 clang-mp-3.2 clang-mp-3.1 clang-mp-3.0 clang
         PATHS /opt/local/bin /usr/local/bin /usr/bin)
 endif()