[Title] Added COREGL_COMPILE_DATE in CMakeLists.txt (2)
authorHaegeun Park <haegeun.park@samsung.com>
Tue, 8 Jan 2013 14:38:01 +0000 (06:38 -0800)
committerHaegeun Park <haegeun.park@samsung.com>
Tue, 8 Jan 2013 14:38:01 +0000 (06:38 -0800)
[Issue#]
[Problem]
[Cause]
[Solution]
Second patch.

CMakeLists.txt

index 5e32d8b..78d0723 100644 (file)
@@ -11,7 +11,9 @@ SET(VERSION "${VERSION_MAJOR}.0")
 INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/include)
 
 ADD_DEFINITIONS("-DPREFIX=\"${PREFIX}\"")
-ADD_DEFINITIONS("-D_COREGL_COMPILE_DATE=\"`date`\"")
+
+EXEC_PROGRAM(date OUTPUT_VARIABLE COMPILE_DATE)
+ADD_DEFINITIONS("-D_COREGL_COMPILE_DATE=\"${COMPILE_DATE}\"")
 
 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -fvisibility=hidden")
 SET(EXTRA_CFLAGS "${EXTRA_CFLAGS} -g -O2 -fPIC -Wall -std=c99 -D_COREGL_EMBEDDED_GL")