aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.match
diff options
context:
space:
mode:
authorLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
committerLexi Winter <lexi@le-fay.org>2025-07-01 17:07:04 +0100
commit2e2d1bd3b6c7776b77c33b94f30ead89367a71e6 (patch)
tree54d37ffadf8e677938d9b7a28e4e9b71be1e75c1 /nihil.match
parent36427c0966faa7aecd586b397ed9b845f18172f5 (diff)
downloadnihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.gz
nihil-2e2d1bd3b6c7776b77c33b94f30ead89367a71e6.tar.bz2
add nihil.std
Diffstat (limited to 'nihil.match')
-rw-r--r--nihil.match/CMakeLists.txt1
-rw-r--r--nihil.match/match.ccm11
-rw-r--r--nihil.match/test.cc8
3 files changed, 6 insertions, 14 deletions
diff --git a/nihil.match/CMakeLists.txt b/nihil.match/CMakeLists.txt
index 283c54f..da59663 100644
--- a/nihil.match/CMakeLists.txt
+++ b/nihil.match/CMakeLists.txt
@@ -1,6 +1,7 @@
# This source code is released into the public domain.
add_library(nihil.match STATIC)
+target_link_libraries(nihil.match PRIVATE nihil.std)
target_sources(nihil.match
PUBLIC FILE_SET modules TYPE CXX_MODULES FILES
match.ccm
diff --git a/nihil.match/match.ccm b/nihil.match/match.ccm
index d67bd0b..03730bb 100644
--- a/nihil.match/match.ccm
+++ b/nihil.match/match.ccm
@@ -1,13 +1,8 @@
-/*
- * This source code is released into the public domain.
- */
-
-module;
-
-#include <variant>
-
+// This source code is released into the public domain.
export module nihil.match;
+import nihil.std;
+
namespace nihil {
export template<class... Ts>
diff --git a/nihil.match/test.cc b/nihil.match/test.cc
index 7dd1c34..974a58a 100644
--- a/nihil.match/test.cc
+++ b/nihil.match/test.cc
@@ -1,12 +1,8 @@
-/*
- * This source code is released into the public domain.
- */
-
-#include <string>
-#include <variant>
+// This source code is released into the public domain.
#include <catch2/catch_test_macros.hpp>
+import nihil.std;
import nihil.match;
TEST_CASE("match", "[nihil]")