We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f73836 commit 435ba12Copy full SHA for 435ba12
CMakeLists.txt
@@ -134,18 +134,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND BUILD_TESTING)
134
list(APPEND CARGO_ENV ${RUNTIME_ENV})
135
endif()
136
137
-# Same logic as in Corrosion.cmake
138
-if(CMAKE_VS_PLATFORM_NAME)
139
- set(BUILD_DIR "${CMAKE_VS_PLATFORM_NAME}/$<CONFIG>")
140
-elseif(CMAKE_CONFIGURATION_TYPES)
141
- set(BUILD_DIR "$<CONFIG>")
142
-else()
143
- set(BUILD_DIR .)
144
-endif()
145
-
146
# Set the target dir to the same that Corrosion uses to reuse build artifacts
147
# from the main build.
148
-set(CARGO_TARGET_DIR "${CMAKE_BINARY_DIR}/${BUILD_DIR}/cargo/build")
+set(CARGO_TARGET_DIR "${CMAKE_BINARY_DIR}/cargo/build")
149
150
if(BUILD_TESTING)
151
# Add CMake tests for `cargo test/clippy/fmt/doc`.
0 commit comments