aboutsummaryrefslogtreecommitdiffstats
path: root/nihil.match
diff options
context:
space:
mode:
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]")