mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 20:27:11 +01:00 
			
		
		
		
	Fix slashes for Windows builds
This commit is contained in:
		 Alexandr Timofeev
					Alexandr Timofeev
				
			
				
					committed by
					
						 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
			
				
	
			
			
			 Martin Hořeňovský
						Martin Hořeňovský
					
				
			
						parent
						
							2f31f9037d
						
					
				
				
					commit
					67a9561fb5
				
			| @@ -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() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user