Skip to content

Commit

Permalink
fix insufficient sh permissions in cmake.
Browse files Browse the repository at this point in the history
  • Loading branch information
canxin121 committed Mar 28, 2024
1 parent 9f16865 commit 0611f19
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions cmake/cargokit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ function(apply_cargokit target manifest_dir lib_name any_symbol_name)
"${CMAKE_CURRENT_BINARY_DIR}/${CONFIG}/${CARGOKIT_LIB_FULL_NAME}"
"${CMAKE_CURRENT_BINARY_DIR}/_phony_"
COMMAND ${CMAKE_COMMAND} -E env ${CARGOKIT_ENV}
"${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}" build-cmake
if(WIN32)
"${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}" build-cmake
else()
sh "${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}" build-cmake
endif()
VERBATIM
)
endforeach()
Expand All @@ -70,11 +74,16 @@ function(apply_cargokit target manifest_dir lib_name any_symbol_name)
${OUTPUT_LIB}
"${CMAKE_CURRENT_BINARY_DIR}/_phony_"
COMMAND ${CMAKE_COMMAND} -E env ${CARGOKIT_ENV}
"${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}" build-cmake
if(WIN32)
"${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}" build-cmake
else()
sh "${cargokit_cmake_root}/run_build_tool${SCRIPT_EXTENSION}" build-cmake
endif()
VERBATIM
)
endif()


set_source_files_properties("${CMAKE_CURRENT_BINARY_DIR}/_phony_" PROPERTIES SYMBOLIC TRUE)

if (TARGET ${target})
Expand Down

0 comments on commit 0611f19

Please sign in to comment.