From e62a649479150fc1695ba8f1ba56252f97dc8080 Mon Sep 17 00:00:00 2001 From: Guillaume Meunier Date: Tue, 28 Jan 2025 22:50:44 +0100 Subject: [PATCH] Create share symlink before creating subdirectories --- client/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index 6a7d8426..92ad103d 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -64,6 +64,8 @@ else() file(GLOB PLATFORM_SOURCE CONFIGURE_DEPENDS "decoder/ffmpeg/*.cpp") target_sources(wivrn PRIVATE ${PLATFORM_SOURCE}) + + file(CREATE_LINK ${CMAKE_CURRENT_BINARY_DIR}/share ${CMAKE_BINARY_DIR}/share SYMBOLIC) endif() @@ -273,7 +275,6 @@ if(NOT ANDROID) add_dependencies(wivrn assets-builddir) set_target_properties(wivrn PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") - file(CREATE_LINK ${CMAKE_CURRENT_BINARY_DIR}/share ${CMAKE_BINARY_DIR}/share SYMBOLIC) install(DIRECTORY "${ASSETS_DIR}" DESTINATION ${CMAKE_INSTALL_DATADIR}/wivrn) endif()