Skip to content

Commit

Permalink
Use raw strings when substituting in paths from CMake. (#2540)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matz-e authored Sep 27, 2023
1 parent 82867f0 commit 2c15679
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake_nrnconf.h.in
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@
#include <string_view>
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<std::string_view, @NRN_PYTHON_COUNT@> supported_python_versions{@NRN_DYNAMIC_PYTHON_LIST_OF_VERSION_STRINGS@};
#endif
constexpr std::string_view shared_library_prefix{"@CMAKE_SHARED_LIBRARY_PREFIX@"};
Expand Down

0 comments on commit 2c15679

Please sign in to comment.