diff options
| author | Alexandr Timofeev | 2020-10-31 21:24:23 +0300 |
|---|---|---|
| committer | Martin Hořeňovský | 2020-11-02 15:37:35 +0100 |
| commit | 67a9561fb5547314c1bd740619e89034450774c1 (patch) | |
| tree | 9d146cf22db88b8f446cc2591d36dbd082a680d5 | |
| parent | 2f31f9037d1139511fa6c5b73fc45698c5783c9e (diff) | |
| download | catch3-67a9561fb5547314c1bd740619e89034450774c1.tar.gz | |
Fix slashes for Windows builds
| -rw-r--r-- | conanfile.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/conanfile.py b/conanfile.py index d3fa47ef..304444cf 100644 --- a/conanfile.py +++ b/conanfile.py @@ -29,11 +29,13 @@ class CatchConan(ConanFile): return cmake def build(self): + # We need this workaround until the toolchains feature + # to inject stuff like MD/MT line_to_replace = 'list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/CMake")' tools.replace_in_file("CMakeLists.txt", line_to_replace, '''{} -include({}/conanbuildinfo.cmake) -conan_basic_setup()'''.format(line_to_replace, self.install_folder)) +include("{}/conanbuildinfo.cmake") +conan_basic_setup()'''.format(line_to_replace, self.install_folder.replace("\\", "/"))) cmake = self._configure_cmake() cmake.build() |