From a7e1411408134bdf107ccf9147ee6e02afe94645 Mon Sep 17 00:00:00 2001 From: bsegovia Date: Tue, 29 Nov 2011 04:37:51 +0000 Subject: Ported the code to HSW --- CMakeLists.txt | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 07ed3b99..5e974c67 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,9 +13,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) SET(CMAKE_VERBOSE_MAKEFILE "false") SET(CMAKE_BUILD_TYPE "Debug" CACHE STRING "Build type") -SET(USE_INTEL_COMPILER CACHE BOOL "false") -SET(EMULATE_IVB CACHE BOOL "false") -SET(EMULATE_SNB CACHE BOOL "false") +SET(EMULATE_IVB false CACHE BOOL "To emulate IVB") +SET(EMULATE_SNB false CACHE BOOL "To emulate SNB") +SET(EMULATE_HSW false CACHE BOOL "To emulate HSW") +SET(USE_OLD_COMPILER false CACHE BOOL "To use the old compiler (required for SNB)") ADD_DEFINITIONS(-D__$(USER)__) IF (EMULATE_HSW) @@ -32,6 +33,12 @@ ELSE (EMULATE_IVB) ADD_DEFINITIONS(-DEMULATE_GEN=0) ENDIF (EMULATE_HSW) +IF (USE_OLD_COMPILER) + ADD_DEFINITIONS (-DUSE_OLD_COMPILER=1) +ELSE (USE_OLD_COMPILER) + ADD_DEFINITIONS (-DUSE_OLD_COMPILER=0) +ENDIF (USE_OLD_COMPILER) + IF (USE_FULSIM) ADD_DEFINITIONS(-DUSE_FULSIM=1) ELSE (USE_FULSIM) -- cgit v1.2.3