aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/toolchain.gcc-armv6hf.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/toolchain.gcc-armv6hf.cmake')
-rw-r--r--cmake/toolchain.gcc-armv6hf.cmake3
1 files changed, 2 insertions, 1 deletions
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")