Added CORE define to config.h in prebuild.cmake (temporarily).
authorHank Anderson <hank.p.anderson@gmail.com>
Wed, 28 Jan 2015 22:33:48 +0000 (16:33 -0600)
committerHank Anderson <hank.p.anderson@gmail.com>
Wed, 28 Jan 2015 22:33:48 +0000 (16:33 -0600)
cmake/prebuild.cmake
driver/level2/CMakeLists.txt

index a4faa13..76f74e0 100644 (file)
@@ -106,4 +106,8 @@ message(STATUS "GETARCH LOG: ${GETARCH_LOG}")
 # temporarily hardcoded to get system.cmake working
 set(NUM_CORES 4)
 set(CORE "GENERIC")
+# TODO: this should be done by getarch! see above
+file(APPEND ${TARGET_CONF}
+  "#define ${CORE}"
+)
 
index 8dc37a8..d06d03c 100644 (file)
@@ -1,4 +1,6 @@
 \r
+include_directories(${CMAKE_SOURCE_DIR})\r
+\r
 # sources that need to be compiled twice, once with no flags and once with LOWER\r
 set(UL_SOURCES\r
   sbmv_k.c\r