summaryrefslogtreecommitdiff
path: root/scripts/toolchain.cmake.in
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-26 09:29:20 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-26 09:29:43 (GMT)
commit1d3eac1e033e3d333d29ea1f32ab9f2b1d11e3f5 (patch)
tree81c9927d7a867311e5c7f82052b252cc95623d8b /scripts/toolchain.cmake.in
parentf8c4bf7569c33f0520dd91bf6ce31b9558a57f8e (diff)
add CONFIG_STYLE for cmake based packages, fixup cmake host install
Diffstat (limited to 'scripts/toolchain.cmake.in')
-rw-r--r--scripts/toolchain.cmake.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/toolchain.cmake.in b/scripts/toolchain.cmake.in
index 150bfcb..85aadcb 100644
--- a/scripts/toolchain.cmake.in
+++ b/scripts/toolchain.cmake.in
@@ -1,6 +1,9 @@
set(CMAKE_SYSTEM_NAME Linux)
set(CMAKE_C_COMPILER @@TARGET_CC@@)
set(CMAKE_CXX_COMPILER @@TARGET_CXX@@)
+set(CMAKE_SYSTEM_NAME Linux)
+set(CMAKE_C_FLAGS "@@TARGET_CFLAGS@@" CACHE STRING "OpenADK CFLAGS" FORCE)
+set(CMAKE_CXX_FLAGS "@@TARGET_CXXFLAGS@@" CACHE STRING "OpenADK CXXFLAGS" FORCE)
set(CMAKE_INSTALL_SO_NO_EXE 0)
set(CMAKE_PROGRAM_PATH \"@@STAGING_HOST_DIR@@/usr/bin\")
set(CMAKE_FIND_ROOT_PATH \"@@STAGING_TARGET_DIR@@\")