Skip to content

Commit

Permalink
fix(CMakeLists): remove executable before overwriting on windows, thi…
Browse files Browse the repository at this point in the history
…rd try

This one is tested to work on my machine
  • Loading branch information
digama0 authored and leodemoura committed Jul 21, 2017
1 parent c7c8387 commit 667e1e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shell/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ else()
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
ADD_CUSTOM_COMMAND(TARGET lean
POST_BUILD
COMMAND "${CMAKE_COMMAND}" -E remove -f "${LEAN_SOURCE_DIR}/../bin/lean${CMAKE_EXECUTABLE_SUFFIX}"
COMMAND rm -f "${LEAN_SOURCE_DIR}/../bin/lean${CMAKE_EXECUTABLE_SUFFIX}"
COMMAND "${CMAKE_COMMAND}" -E copy "${CMAKE_CURRENT_BINARY_DIR}/lean${CMAKE_EXECUTABLE_SUFFIX}" "${LEAN_SOURCE_DIR}/../bin/"
)
else()
Expand Down

0 comments on commit 667e1e1

Please sign in to comment.