diff options
author | Sven Gothel <[email protected]> | 2014-02-15 02:49:19 +0100 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-02-15 02:49:19 +0100 |
commit | e9208977d09972e81e5dac9e196199b4e28244e8 (patch) | |
tree | 29240a11f6ac2ae0f14fc105b16c94db683ab8c1 | |
parent | e6f4251945c228a775649b5ccd7f11dd4519c28d (diff) |
cmake/toolchain*: Add CXX_FLAGS
-rw-r--r-- | cmake/toolchain.clang-default.cmake | 3 | ||||
-rw-r--r-- | cmake/toolchain.clang-x86_32.cmake | 3 | ||||
-rw-r--r-- | cmake/toolchain.gcc-armv6.cmake | 3 | ||||
-rw-r--r-- | cmake/toolchain.gcc-armv6hf.cmake | 3 | ||||
-rw-r--r-- | cmake/toolchain.gcc-default.cmake | 3 | ||||
-rw-r--r-- | cmake/toolchain.gcc-x86_32.cmake | 3 |
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") |