diff options
author | Dusan Klinec <dusan.klinec@gmail.com> | 2019-04-09 19:23:28 +0200 |
---|---|---|
committer | Dusan Klinec <dusan.klinec@gmail.com> | 2019-04-10 15:43:52 +0200 |
commit | f29fecd517cae20e6fb86e3a8460f47063df158b (patch) | |
tree | 9ab77c42c5312b5570d5011346ba831c64d4dba5 /contrib/depends/toolchain.cmake.in | |
parent | Merge pull request #5364 (diff) | |
download | monero-f29fecd517cae20e6fb86e3a8460f47063df158b.tar.xz |
build: debug and test builds via contrib
Diffstat (limited to 'contrib/depends/toolchain.cmake.in')
-rw-r--r-- | contrib/depends/toolchain.cmake.in | 13 |
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) |