diff options
| author | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-04 20:16:15 +0000 |
|---|---|---|
| committer | Francesco Colista <fcolista@alpinelinux.org> | 2019-04-05 08:38:07 +0000 |
| commit | 18b35f387b7fbecf49db7219aeab629a75a8dd74 (patch) | |
| tree | 5b768a89ff41269f42b458cde450622cdbadd35f /testing/bctoolbox/cmake-bcunit-fix.patch | |
| parent | 87214df91a3e5209f3c10dc42f635f47f71aaf11 (diff) | |
| download | aports-18b35f387b7fbecf49db7219aeab629a75a8dd74.tar.bz2 aports-18b35f387b7fbecf49db7219aeab629a75a8dd74.tar.xz | |
testing/bctoolbox: new aport
Diffstat (limited to 'testing/bctoolbox/cmake-bcunit-fix.patch')
| -rw-r--r-- | testing/bctoolbox/cmake-bcunit-fix.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/testing/bctoolbox/cmake-bcunit-fix.patch b/testing/bctoolbox/cmake-bcunit-fix.patch new file mode 100644 index 0000000000..fd3a747640 --- /dev/null +++ b/testing/bctoolbox/cmake-bcunit-fix.patch @@ -0,0 +1,19 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index e14e502..9711ea7 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -98,14 +98,9 @@ if(POLARSSL_FOUND) + endif() + + if(ENABLE_TESTS_COMPONENT) +- find_package(BcUnit REQUIRED) +- cmake_push_check_state(RESET) +- list(APPEND CMAKE_REQUIRED_INCLUDES ${BCUNIT_INCLUDE_DIRS}) +- list(APPEND CMAKE_REQUIRED_LIBRARIES ${BCUNIT_LIBRARIES}) + check_symbol_exists("CU_get_suite" "BCUnit/BCUnit.h" HAVE_CU_GET_SUITE) + check_symbol_exists("CU_curses_run_tests" "BCUnit/BCUnit.h" HAVE_CU_CURSES) + check_symbol_exists("CU_set_trace_handler" "BCUnit/Util.h" HAVE_CU_SET_TRACE_HANDLER) +- cmake_pop_check_state() + set(TESTER_REQUIRES_PRIVATE "bcunit") + endif() + |
