diff options
author | Benjamin Segovia <segovia.benjamin@gmail.com> | 2012-02-13 12:44:22 +0000 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-08-10 16:15:14 -0700 |
commit | 4b4235555be292f22a115637dc60fe7eb4bd0b99 (patch) | |
tree | 000641339381eab628b43ef1578517d6499f5952 /backend/CMakeLists.txt | |
parent | 04246c5c4a47b270e3792530ebf71d9b76fb5aff (diff) | |
download | beignet-4b4235555be292f22a115637dc60fe7eb4bd0b99.tar.gz |
int* -> [u]uint*_t
Diffstat (limited to 'backend/CMakeLists.txt')
-rw-r--r-- | backend/CMakeLists.txt | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/backend/CMakeLists.txt b/backend/CMakeLists.txt index 73a79edb..4b2ffca5 100644 --- a/backend/CMakeLists.txt +++ b/backend/CMakeLists.txt @@ -1,17 +1,17 @@ -project (PF) +project (GBE) cmake_minimum_required (VERSION 2.6.0) -set (PF_CMAKE_DIR "${PF_SOURCE_DIR}/cmake") -set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PF_CMAKE_DIR}") +set (GBE_CMAKE_DIR "${GBE_SOURCE_DIR}/cmake") +set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${GBE_CMAKE_DIR}") ############################################################## # Compilation directives ############################################################## -set (PF_DEBUG_MEMORY false CACHE bool "Activate the memory debugger") -set (PF_USE_BLOB false CACHE bool "Compile everything from one big file") -set (PF_VERBOSE_VECTORIZER false CACHE bool "Output vectorizer diagnostic (GCC only)") +set (GBE_DEBUG_MEMORY false CACHE bool "Activate the memory debugger") +set (GBE_USE_BLOB false CACHE bool "Compile everything from one big file") +set (GBE_VERBOSE_VECTORIZER false CACHE bool "Output vectorizer diagnostic (GCC only)") ############################################################## # Compiler @@ -30,11 +30,11 @@ else (WIN32) set (DEF "-D") endif (WIN32) -if (PF_DEBUG_MEMORY) - set (PF_DEBUG_MEMORY_FLAG "${DEF}PF_DEBUG_MEMORY=1") -else (PF_DEBUG_MEMORY) - set (PF_DEBUG_MEMORY_FLAG "${DEF}PF_DEBUG_MEMORY=0") -endif (PF_DEBUG_MEMORY) +if (GBE_DEBUG_MEMORY) + set (GBE_DEBUG_MEMORY_FLAG "${DEF}GBE_DEBUG_MEMORY=1") +else (GBE_DEBUG_MEMORY) + set (GBE_DEBUG_MEMORY_FLAG "${DEF}GBE_DEBUG_MEMORY=0") +endif (GBE_DEBUG_MEMORY) ## Linux compilation if (CMAKE_SYSTEM_NAME STREQUAL "Linux") @@ -42,13 +42,13 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") set (VISIBILITY_FLAG "-fvisibility=hidden") if (COMPILER STREQUAL "GCC") - set (CMAKE_CXX_FLAGS "-Wstrict-aliasing=2 -Wno-invalid-offsetof -fstrict-aliasing -msse2 -ffast-math -fPIC -Wall -fno-rtti -std=c++0x") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PF_DEBUG_MEMORY_FLAG}") + set (CMAKE_CXX_FLAGS "-Wstrict-aliasing=2 -Wno-invalid-offsetof -fno-strict-aliasing -msse2 -ffast-math -fPIC -Wall -fno-rtti -std=c++0x") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GBE_DEBUG_MEMORY_FLAG}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VISIBILITY_FLAG} -Wl,-E") set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG -ftree-vectorize") - if (PF_VERBOSE_VECTORIZER) + if (GBE_VERBOSE_VECTORIZER) set (CMAKE_CXX_FLAGS "-ftree-vectorizer-verbose=2") - endif (PF_VERBOSE_VECTORIZER) + endif (GBE_VERBOSE_VECTORIZER) elseif (COMPILER STREQUAL "CLANG") set (CMAKE_C_COMPILER "clang") set (CMAKE_C_FLAGS "-Wall -std=c99") @@ -57,8 +57,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") set (CMAKE_C_FLAGS_RELEASE "-O3 -DNDEBUG") set (CMAKE_C_FLAGS_RELWITHDEBINFO "-O2 -g") set (CMAKE_CXX_COMPILER "clang++") - set (CMAKE_CXX_FLAGS "-fstrict-aliasing -msse2 -ffast-math -fPIC -Wall -Wno-format-security -Wno-invalid-offsetof -std=c++0x") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PF_DEBUG_MEMORY_FLAG}") + set (CMAKE_CXX_FLAGS "-fno-strict-aliasing -msse2 -ffast-math -fPIC -Wall -Wno-format-security -Wno-invalid-offsetof -std=c++0x") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GBE_DEBUG_MEMORY_FLAG}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VISIBILITY_FLAG}") set (CMAKE_CXX_FLAGS_DEBUG "-g") set (CMAKE_CXX_FLAGS_MINSIZEREL "-Os -DNDEBUG") @@ -72,8 +72,8 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") elseif (COMPILER STREQUAL "ICC") set (CMAKE_CXX_COMPILER "icpc") set (CMAKE_C_COMPILER "icc") - set (CMAKE_CXX_FLAGS "-std=c++0x -wd2928 -Wall -fPIC -fstrict-aliasing -fp-model fast -xSSE2") - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PF_DEBUG_MEMORY_FLAG}") + set (CMAKE_CXX_FLAGS "-std=c++0x -wd2928 -Wall -fPIC -fno-strict-aliasing -fp-model fast -xSSE2") + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GBE_DEBUG_MEMORY_FLAG}") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${VISIBILITY_FLAG} -Wl,-E") set (CMAKE_CXX_FLAGS_DEBUG "-g -O0") set (CMAKE_CXX_FLAGS_RELEASE "-DNDEBUG -O2") @@ -85,13 +85,13 @@ if (CMAKE_SYSTEM_NAME STREQUAL "Linux") ## Windows compilation elseif (CMAKE_SYSTEM_NAME STREQUAL "Windows") if (MINGW) - if (PF_VERBOSE_VECTORIZER) + if (GBE_VERBOSE_VECTORIZER) set (CMAKE_CXX_FLAGS "-ftree-vectorizer-verbose=2") - endif (PF_VERBOSE_VECTORIZER) - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${PF_DEBUG_MEMORY_FLAG} -Wno-invalid-offsetof -fstrict-aliasing -msse2 -ffast-math -Wall -fno-rtti -std=c++0x") + endif (GBE_VERBOSE_VECTORIZER) + set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GBE_DEBUG_MEMORY_FLAG} -Wno-invalid-offsetof -fstrict-aliasing -msse2 -ffast-math -Wall -fno-rtti -std=c++0x") set (CMAKE_CXX_FLAGS_RELEASE "-O2 -DNDEBUG") else (MINGW) - set (COMMON_FLAGS "${PF_DEBUG_MEMORY_FLAG} /arch:SSE2 /D_CRT_SECURE_NO_WARNINGS /DNOMINMAX /GR- /GS- /W3 /wd4275") + set (COMMON_FLAGS "${GBE_DEBUG_MEMORY_FLAG} /arch:SSE2 /D_CRT_SECURE_NO_WARNINGS /DNOMINMAX /GR- /GS- /W3 /wd4275") set (CMAKE_CXX_FLAGS ${COMMON_FLAGS}) set (CMAKE_C_FLAGS ${COMMON_FLAGS}) endif (MINGW) |