Skip to content

Commit

Permalink
Fix wxfb_install_files() to properly create the directory structure
Browse files Browse the repository at this point in the history
Extracting ROOT_PATH returns an empty result, use PARENT_PATH instead.
  • Loading branch information
sodevel committed Jan 13, 2022
1 parent 3409d02 commit 978478d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/functions.cmake
Expand Up @@ -338,7 +338,7 @@ is created inside <destination-directory>.
function(wxfb_install_files arg_BASE_DIRECTORY arg_FILES arg_DESTINATION)
foreach(file IN LISTS arg_FILES)
cmake_path(RELATIVE_PATH file BASE_DIRECTORY "${arg_BASE_DIRECTORY}" OUTPUT_VARIABLE fileBase)
cmake_path(GET fileBase ROOT_PATH fileDir)
cmake_path(GET fileBase PARENT_PATH fileDir)
install(FILES "${file}" DESTINATION "${arg_DESTINATION}/${fileDir}")
endforeach()
endfunction()

0 comments on commit 978478d

Please sign in to comment.