From 41dee7f9709beac7069eb09467e5d822c14e2206 Mon Sep 17 00:00:00 2001 From: Alexander Mai Date: Fri, 19 Feb 2016 21:40:31 +0100 Subject: [PATCH] #7399 CMake error: Cannot specify link libraries for target 'testrunner' (reported by user dbuchholz). Add comment to mathlib.h --- lib/mathlib.h | 4 ++++ test/CMakeLists.txt | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/mathlib.h b/lib/mathlib.h index d77296fc6..2639003ca 100644 --- a/lib/mathlib.h +++ b/lib/mathlib.h @@ -112,6 +112,10 @@ public: * @return true if given character is octal digit. */ static bool isOctalDigit(char c); + /* + * \param str character literal + * @return Number of internal representation of the character literal + * */ static MathLib::bigint characterLiteralToLongNumber(const std::string& str); }; diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b85a80e33..01ec1a28b 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -8,7 +8,7 @@ if (BUILD_TESTS) add_executable(testrunner ${hdrs} ${srcs} $ $ $) if (HAVE_RULES) - target_link_libraries(testunner pcre) + target_link_libraries(testrunner pcre) endif() add_custom_target(copy_cfg ALL