Skip to content

Commit 435ba12

Browse files
committed
cmake: remove unused platform name (from vcpkg details)
This is likely not required anymore.
1 parent 2f73836 commit 435ba12

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

CMakeLists.txt

+1-10
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,9 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Windows" AND BUILD_TESTING)
134134
list(APPEND CARGO_ENV ${RUNTIME_ENV})
135135
endif()
136136

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-
146137
# Set the target dir to the same that Corrosion uses to reuse build artifacts
147138
# from the main build.
148-
set(CARGO_TARGET_DIR "${CMAKE_BINARY_DIR}/${BUILD_DIR}/cargo/build")
139+
set(CARGO_TARGET_DIR "${CMAKE_BINARY_DIR}/cargo/build")
149140

150141
if(BUILD_TESTING)
151142
# Add CMake tests for `cargo test/clippy/fmt/doc`.

0 commit comments

Comments
 (0)