aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2014-02-15 02:49:19 +0100
committerSven Gothel <[email protected]>2014-02-15 02:49:19 +0100
commite9208977d09972e81e5dac9e196199b4e28244e8 (patch)
tree29240a11f6ac2ae0f14fc105b16c94db683ab8c1 /cmake
parente6f4251945c228a775649b5ccd7f11dd4519c28d (diff)
cmake/toolchain*: Add CXX_FLAGS
Diffstat (limited to 'cmake')
-rw-r--r--cmake/toolchain.clang-default.cmake3
-rw-r--r--cmake/toolchain.clang-x86_32.cmake3
-rw-r--r--cmake/toolchain.gcc-armv6.cmake3
-rw-r--r--cmake/toolchain.gcc-armv6hf.cmake3
-rw-r--r--cmake/toolchain.gcc-default.cmake3
-rw-r--r--cmake/toolchain.gcc-x86_32.cmake3
6 files changed, 12 insertions, 6 deletions
diff --git a/cmake/toolchain.clang-default.cmake b/cmake/toolchain.clang-default.cmake
index 693f55c8..f38bf341 100644
--- a/cmake/toolchain.clang-default.cmake
+++ b/cmake/toolchain.clang-default.cmake
@@ -1,6 +1,7 @@
# For normal clang compilation
-# set(CMAKE_C_FLAGS "-include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h")
+# set(CMAKE_C_FLAGS "-include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
+# set(CMAKE_CXX_FLAGS "-include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")
diff --git a/cmake/toolchain.clang-x86_32.cmake b/cmake/toolchain.clang-x86_32.cmake
index db2b7a27..cc76881a 100644
--- a/cmake/toolchain.clang-x86_32.cmake
+++ b/cmake/toolchain.clang-x86_32.cmake
@@ -4,7 +4,8 @@ set(CMAKE_SYSTEM_PROCESSOR "x86")
link_directories("/usr/lib32")
-# set(CMAKE_C_FLAGS "-m32 -include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h")
+# set(CMAKE_C_FLAGS "-m32 -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
+# set(CMAKE_CXX_FLAGS "-m32 -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")
diff --git a/cmake/toolchain.gcc-armv6.cmake b/cmake/toolchain.gcc-armv6.cmake
index f09eae27..93c374b5 100644
--- a/cmake/toolchain.gcc-armv6.cmake
+++ b/cmake/toolchain.gcc-armv6.cmake
@@ -1,6 +1,7 @@
# For normal gcc compilation, but use static-libgcc
-set(CMAKE_C_FLAGS "-fpic -march=armv5te -marm -mfloat-abi=softfp -include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h -I/usr/include")
+set(CMAKE_C_FLAGS "-fpic -march=armv5te -marm -mfloat-abi=softfp -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h -I/usr/include")
+set(CMAKE_CXX_FLAGS "-fpic -march=armv5te -marm -mfloat-abi=softfp -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h -I/usr/include")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")
diff --git a/cmake/toolchain.gcc-armv6hf.cmake b/cmake/toolchain.gcc-armv6hf.cmake
index 3d197126..ec239661 100644
--- a/cmake/toolchain.gcc-armv6hf.cmake
+++ b/cmake/toolchain.gcc-armv6hf.cmake
@@ -1,6 +1,7 @@
# For normal gcc compilation, but use static-libgcc
-set(CMAKE_C_FLAGS "-fpic -march=armv6 -marm -mfloat-abi=hard -include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h -I/usr/include")
+set(CMAKE_C_FLAGS "-fpic -march=armv6 -marm -mfloat-abi=hard -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h -I/usr/include")
+set(CMAKE_CXX_FLAGS "-fpic -march=armv6 -marm -mfloat-abi=hard -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h -I/usr/include")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")
diff --git a/cmake/toolchain.gcc-default.cmake b/cmake/toolchain.gcc-default.cmake
index 3b2c9cfd..43294ab0 100644
--- a/cmake/toolchain.gcc-default.cmake
+++ b/cmake/toolchain.gcc-default.cmake
@@ -1,6 +1,7 @@
# For normal gcc compilation, but use static-libgcc
-set(CMAKE_C_FLAGS "-include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h")
+set(CMAKE_C_FLAGS "-include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
+set(CMAKE_CXX_FLAGS "-include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")
diff --git a/cmake/toolchain.gcc-x86_32.cmake b/cmake/toolchain.gcc-x86_32.cmake
index 890f6e11..502378ab 100644
--- a/cmake/toolchain.gcc-x86_32.cmake
+++ b/cmake/toolchain.gcc-x86_32.cmake
@@ -4,7 +4,8 @@ set(CMAKE_SYSTEM_PROCESSOR "x86")
link_directories("/usr/lib32")
-set(CMAKE_C_FLAGS "-m32 -include ${CMAKE_MODULE_PATH}/glibc-compat-symbols.h")
+set(CMAKE_C_FLAGS "-m32 -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
+set(CMAKE_CXX_FLAGS "-m32 -include ${PROJECT_SOURCE_DIR}/cmake/glibc-compat-symbols.h")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c++ flags")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" CACHE STRING "c flags")