aboutsummaryrefslogtreecommitdiff
path: root/contrib/depends/toolchain.cmake.in
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2019-05-07 17:26:31 +0200
committerRiccardo Spagni <ric@spagni.net>2019-05-07 17:26:32 +0200
commit123df0eaf7bc1db5a4001381d8f6ac8a3c8e0f05 (patch)
tree426683b13e00d59d40eb5999465c98f69b01d5f5 /contrib/depends/toolchain.cmake.in
parentMerge pull request #5497 (diff)
parentbuild: debug and test builds via contrib (diff)
downloadmonero-123df0eaf7bc1db5a4001381d8f6ac8a3c8e0f05.tar.xz
Merge pull request #5419
f29fecd5 build: debug and test builds via contrib (Dusan Klinec)
Diffstat (limited to 'contrib/depends/toolchain.cmake.in')
-rw-r--r--contrib/depends/toolchain.cmake.in13
1 files changed, 10 insertions, 3 deletions
diff --git a/contrib/depends/toolchain.cmake.in b/contrib/depends/toolchain.cmake.in
index b0af7bd6b..6b5434751 100644
--- a/contrib/depends/toolchain.cmake.in
+++ b/contrib/depends/toolchain.cmake.in
@@ -1,9 +1,16 @@
# Set the system name, either Darwin, Linux, or Windows
SET(CMAKE_SYSTEM_NAME @depends@)
-SET(CMAKE_BUILD_TYPE release)
+SET(CMAKE_BUILD_TYPE @release_type@)
-SET(STATIC true)
-SET(UNBOUND_STATIC true)
+OPTION(STATIC "Link libraries statically" ON)
+OPTION(TREZOR_DEBUG "Main trezor debugging switch" OFF)
+OPTION(BUILD_TESTS "Build tests." OFF)
+
+SET(STATIC ON)
+SET(UNBOUND_STATIC ON)
+
+SET(BUILD_TESTS @build_tests@)
+SET(TREZOR_DEBUG @build_tests@)
# where is the target environment
SET(CMAKE_FIND_ROOT_PATH @prefix@ /usr)