Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMartin Hořeňovský2020-01-19 15:30:38 +0100
committerMartin Hořeňovský2020-01-19 15:39:11 +0100
commitacf975cab1c5ef008ff1977809cec817e10b40f4 (patch)
tree776daa0998c4a008c0dddabedd96705654468ff4 /src
parentec7280379e9fbc8db34c4fa6b29eda2dcd5fdca9 (diff)
downloadcatch3-acf975cab1c5ef008ff1977809cec817e10b40f4.tar.gz
Separate version macros to its own header
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/catch2/catch.hpp4
-rw-r--r--src/catch2/catch_version_macros.hpp13
3 files changed, 15 insertions, 3 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 7e37c3b9..ac983f02 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -115,6 +115,7 @@ set(INTERNAL_HEADERS
${SOURCES_DIR}/catch_uncaught_exceptions.h
${SOURCES_DIR}/catch_user_interfaces.h
${SOURCES_DIR}/catch_version.h
+ ${SOURCES_DIR}/catch_version_macros.hpp
${SOURCES_DIR}/catch_wildcard_pattern.h
${SOURCES_DIR}/catch_windows_h_proxy.h
${SOURCES_DIR}/catch_xmlwriter.h
diff --git a/src/catch2/catch.hpp b/src/catch2/catch.hpp
index 5e3ea8fb..1c6fbdc1 100644
--- a/src/catch2/catch.hpp
+++ b/src/catch2/catch.hpp
@@ -9,9 +9,7 @@
#ifndef TWOBLUECUBES_CATCH_HPP_INCLUDED
#define TWOBLUECUBES_CATCH_HPP_INCLUDED
-#define CATCH_VERSION_MAJOR 2
-#define CATCH_VERSION_MINOR 10
-#define CATCH_VERSION_PATCH 2
+#include <catch2/catch_version_macros.hpp>
#ifdef __clang__
# pragma clang system_header
diff --git a/src/catch2/catch_version_macros.hpp b/src/catch2/catch_version_macros.hpp
new file mode 100644
index 00000000..db48b00a
--- /dev/null
+++ b/src/catch2/catch_version_macros.hpp
@@ -0,0 +1,13 @@
+/*
+ * Distributed under the Boost Software License, Version 1.0. (See accompanying
+ * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+ */
+
+#ifndef TWOBLUECUBES_CATCH_VERSION_MACROS_HPP_INCLUDED
+#define TWOBLUECUBES_CATCH_VERSION_MACROS_HPP_INCLUDED
+
+#define CATCH_VERSION_MAJOR 2
+#define CATCH_VERSION_MINOR 10
+#define CATCH_VERSION_PATCH 2
+
+#endif // TWOBLUECUBES_CATCH_VERSION_MACROS_HPP_INCLUDED