Skip to content

Commit

Permalink
take 26
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoiast committed Jul 18, 2024
1 parent 254142d commit 29d6073
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions cmake/icons-breeze.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,17 @@ function(download_breeze_icons VERSION)
COMMAND cmd /c "dir /w ${NATIVE}"
)

message(" *** Copying ${CMAKE_BINARY_DIR}/breeze-icons-${VERSION}/icons => ${CMAKE_BINARY_DIR}/share/icons/breeze")
file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/breeze-icons-${VERSION}/icons" NATIVE_TO)
file(TO_NATIVE_PATH "${CMAKE_BINARY_DIR}/share/icons/breeze" NATIVE_TO)

message(" *** Copying ${NATIVE_FROM} ${NATIVE_TO} ")
execute_process(
COMMAND ${CMAKE_COMMAND} -E make_directory "${CMAKE_BINARY_DIR}/share/icons/breeze"
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_BINARY_DIR}/breeze-icons-${VERSION}/icons" "${CMAKE_BINARY_DIR}/share/icons/breeze"
COMMAND ${CMAKE_COMMAND} -E make_directory "${NATIVE_TO}"
COMMAND ${CMAKE_COMMAND} -E copy_directory "${NATIVE_FROM}" "${NATIVE_TO}"
RESULT_VARIABLE copy_result
)
if(copy_result)
message(FATAL_ERROR "Error copying ${CMAKE_BINARY_DIR}/breeze-icons-${VERSION}/icons => ${CMAKE_BINARY_DIR}/share/icons/breeze")
message(FATAL_ERROR "Error copying ${NATIVE_FROM} => ${NATIVE_TO}")
endif()

set(${breeze_icons_install_dir_NATIVE} PARENT_SCOPE)
Expand Down

0 comments on commit 29d6073

Please sign in to comment.