summaryrefslogtreecommitdiffstats
path: root/Utilities/cm3p/cppdap/session.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-05-19 14:33:13 (GMT)
committerBrad King <brad.king@kitware.com>2023-05-26 13:36:14 (GMT)
commit5ec69eb58c4d863e9f8f278b7c78d08f8cedd3f4 (patch)
tree204366b19fba81e4374cd44cb5816e325bfb258f /Utilities/cm3p/cppdap/session.h
parent3381e6bd5cbfa1694f07c97a19747adda10b06f2 (diff)
downloadCMake-5ec69eb58c4d863e9f8f278b7c78d08f8cedd3f4.zip
CMake-5ec69eb58c4d863e9f8f278b7c78d08f8cedd3f4.tar.gz
CMake-5ec69eb58c4d863e9f8f278b7c78d08f8cedd3f4.tar.bz2
cppdap: Build as part of CMake or use external installation
Add `cm3p/` headers to use the selected copy of the library. Co-authored-by: Glen Chung <kuchung@microsoft.com>
Diffstat (limited to 'Utilities/cm3p/cppdap/session.h')
-rw-r--r--Utilities/cm3p/cppdap/session.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/Utilities/cm3p/cppdap/session.h b/Utilities/cm3p/cppdap/session.h
new file mode 100644
index 0000000..d4468e7
--- /dev/null
+++ b/Utilities/cm3p/cppdap/session.h
@@ -0,0 +1,11 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#pragma once
+
+/* Use the cppdap library configured for CMake. */
+#include "cmThirdParty.h"
+#ifdef CMAKE_USE_SYSTEM_CPPDAP
+# include <dap/session.h> // IWYU pragma: export
+#else
+# include <cmcppdap/include/dap/session.h> // IWYU pragma: export
+#endif