Skip to content

Commit

Permalink
fix: Windows copy
Browse files Browse the repository at this point in the history
  • Loading branch information
LeandroSQ committed Feb 2, 2024
1 parent a378635 commit 0e2e756
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function(include_library name version source)
message(STATUS "Moving everything inside the top level folder to the install path. From ${TEMP_PATH}/${name}-${version}/${children} to ${INSTALL_PATH}/${name}-${version}")
if(WIN32)
# On Windows, RENAME yields in a "Access is denied" error, so we use INSTALL and then REMOVE_RECURSE
file(INSTALL ${TEMP_PATH}/${name}-${version}/${children} DESTINATION ${INSTALL_PATH}/${name}-${version})
file(COPY ${TEMP_PATH}/${name}-${version}/${children} DESTINATION ${INSTALL_PATH}/${name}-${version})
file(REMOVE_RECURSE ${TEMP_PATH}/${name}-${version})
else()
file(RENAME ${TEMP_PATH}/${name}-${version}/${children} ${INSTALL_PATH}/${name}-${version})
Expand Down

0 comments on commit 0e2e756

Please sign in to comment.