CMakeLists.txt
branchwebgl
changeset 8334 abb48dd39e26
parent 8330 aaefa587e277
child 8340 46a9fde631f4
--- a/CMakeLists.txt	Tue Dec 25 05:15:49 2012 +0100
+++ b/CMakeLists.txt	Sun Dec 30 09:23:30 2012 -0500
@@ -27,6 +27,7 @@
 option(ANDROID "Enable Android build [default: off]" OFF)
 option(NOAUTOUPDATE "Disable OS X Sparkle update checking" OFF)
 option(MINIMAL_FLAGS "Respect system flags as much as possible [default: off]" OFF)
+option(GL2 "Enable OpenGL 2 rendering [default: off]" OFF)
 set(FPFLAGS "" CACHE STRING "Additional Freepascal flags" FORCE)
 set(GHFLAGS "" CACHE STRING "Additional Haskell flags" FORCE)
 
@@ -73,12 +74,13 @@
 
 # Check LLVM/Clang version
 find_package(Clang)
-
-if (CLANG_VERSION VERSION_LESS required_clang_version)
-    message(FATAL_ERROR "Necessary LLVM/Clang version not found (version >= ${REQUIRED_CLANG_VERSION} required)")
-else()
-    message(STATUS "Found CLANG: ${CLANG_EXECUTABLE} (version ${CLANG_VERSION})")
-endif()
+if (NOPASCAL)
+	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!")
+	else()
+		message(STATUS "Found CLANG: ${CLANG_EXECUTABLE} (version ${CLANG_VERSION})")
+	endif()
+endif(NOPASCAL)
 
 
 set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)