summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorZhigang Gong <zhigang.gong@linux.intel.com>2013-03-19 19:39:13 +0800
committerZhigang Gong <zhigang.gong@linux.intel.com>2013-04-10 14:52:33 +0800
commitf70179174d07bd5f1a582664f294438ed4362b4e (patch)
treed36d912b0962e8d3e071c02f92b517eb2d4adaaf /CMakeLists.txt
parent6d452b13fda364f23754c94bd6b677878b7847c6 (diff)
Set the initial library versions to 0.1.
We have two libraries here, one is the gen backend and the other is libcl runtime library. We set both initial versions to 0.1. Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com> Reviewed-by: Lu Guanqun <guanqun.lu@intel.com>
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index f580ac09..7f37be9c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -8,6 +8,13 @@
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
PROJECT(OCL)
+set (LIBCL_VERSION_MAJOR 0)
+set (LIBCL_VERSION_MINOR 1)
+
+configure_file (
+ "src/OCLConfig.h.in"
+ "src/OCLConfig.h"
+)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR})
@@ -49,7 +56,7 @@ ELSE (USE_FULSIM)
ENDIF (USE_FULSIM)
SET(CMAKE_CXX_FLAGS "-Wall -Wno-invalid-offsetof -mfpmath=sse --no-rtti -Wcast-align -std=c++0x -msse2 -msse3 -mssse3 -msse4.1 ")
-SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1 ")
+SET(CMAKE_C_FLAGS "-Wall -mfpmath=sse -msse2 -Wcast-align -msse2 -msse3 -mssse3 -msse4.1")
# Front end stuff we need
#INCLUDE(CMake/FindLLVM.cmake)