From 2c156791e2272005e9952084622d2555c1a3aa39 Mon Sep 17 00:00:00 2001 From: Matthias Wolf Date: Wed, 27 Sep 2023 12:24:12 +0200 Subject: [PATCH] Use raw strings when substituting in paths from CMake. (#2540) This will silence a lot of warnings on Windows coming from using \ as a path separator. Should have no impact on systems posing as UNIX-compatible. --- cmake_nrnconf.h.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake_nrnconf.h.in b/cmake_nrnconf.h.in index cb84789c33..574ee4870b 100644 --- a/cmake_nrnconf.h.in +++ b/cmake_nrnconf.h.in @@ -359,7 +359,7 @@ #include namespace neuron::config { #ifdef USE_PYTHON - constexpr std::string_view default_python_executable{"@NRN_DEFAULT_PYTHON_EXECUTABLE@"}; + constexpr std::string_view default_python_executable{R"(@NRN_DEFAULT_PYTHON_EXECUTABLE@)"}; constexpr std::array supported_python_versions{@NRN_DYNAMIC_PYTHON_LIST_OF_VERSION_STRINGS@}; #endif constexpr std::string_view shared_library_prefix{"@CMAKE_SHARED_LIBRARY_PREFIX@"};