From 4f6734703c5fbc33f740fad38d17cd060982fba2 Mon Sep 17 00:00:00 2001 From: John Colvin Date: Fri, 18 Apr 2025 10:36:38 -0400 Subject: [PATCH] fix build (windows): Rename 'catch' include dir 'catch2' Unfortunately, I couldn't get our windows build to work with the new version of catch2 (managed by vcpkg) on windows. However, I already updated our code to use the new headers for linux, so this is a simple hack to make the include paths work with the old catch headers on windows. --- windows/include/{catch => catch2}/catch.hpp | 0 windows/include/catch2/catch_all.hpp | 4 ++++ windows/include/{catch => catch2}/catch_reporter_automake.hpp | 0 .../include/{catch => catch2}/catch_reporter_sonarqube.hpp | 0 windows/include/{catch => catch2}/catch_reporter_tap.hpp | 0 windows/include/{catch => catch2}/catch_reporter_teamcity.hpp | 0 6 files changed, 4 insertions(+) rename windows/include/{catch => catch2}/catch.hpp (100%) create mode 100644 windows/include/catch2/catch_all.hpp rename windows/include/{catch => catch2}/catch_reporter_automake.hpp (100%) rename windows/include/{catch => catch2}/catch_reporter_sonarqube.hpp (100%) rename windows/include/{catch => catch2}/catch_reporter_tap.hpp (100%) rename windows/include/{catch => catch2}/catch_reporter_teamcity.hpp (100%) diff --git a/windows/include/catch/catch.hpp b/windows/include/catch2/catch.hpp similarity index 100% rename from windows/include/catch/catch.hpp rename to windows/include/catch2/catch.hpp diff --git a/windows/include/catch2/catch_all.hpp b/windows/include/catch2/catch_all.hpp new file mode 100644 index 000000000..f31ca2068 --- /dev/null +++ b/windows/include/catch2/catch_all.hpp @@ -0,0 +1,4 @@ +#ifndef CATCH2_CATCHALL_H +#define CATCH2_CATCHALL_H +#include +#endif diff --git a/windows/include/catch/catch_reporter_automake.hpp b/windows/include/catch2/catch_reporter_automake.hpp similarity index 100% rename from windows/include/catch/catch_reporter_automake.hpp rename to windows/include/catch2/catch_reporter_automake.hpp diff --git a/windows/include/catch/catch_reporter_sonarqube.hpp b/windows/include/catch2/catch_reporter_sonarqube.hpp similarity index 100% rename from windows/include/catch/catch_reporter_sonarqube.hpp rename to windows/include/catch2/catch_reporter_sonarqube.hpp diff --git a/windows/include/catch/catch_reporter_tap.hpp b/windows/include/catch2/catch_reporter_tap.hpp similarity index 100% rename from windows/include/catch/catch_reporter_tap.hpp rename to windows/include/catch2/catch_reporter_tap.hpp diff --git a/windows/include/catch/catch_reporter_teamcity.hpp b/windows/include/catch2/catch_reporter_teamcity.hpp similarity index 100% rename from windows/include/catch/catch_reporter_teamcity.hpp rename to windows/include/catch2/catch_reporter_teamcity.hpp