From a358344017b4d612a6e8f3f9b63503c33b949849 Mon Sep 17 00:00:00 2001 From: falkTX Date: Fri, 21 Jul 2023 11:52:12 +0200 Subject: [PATCH] cmake: Use full path to linker script Signed-off-by: falkTX --- cmake/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt index 4a5cca3fc..a9b2de11a 100644 --- a/cmake/CMakeLists.txt +++ b/cmake/CMakeLists.txt @@ -913,17 +913,17 @@ elseif(EMSCRIPTEN) elseif(MSVC) target_link_options(carla-native-plugin PRIVATE - /DEF:../source/plugin/symbols/carla-native-plugin.def + /DEF:${CMAKE_CURRENT_SOURCE_DIR}/../source/plugin/symbols/carla-native-plugin.def ) elseif(WIN32) target_link_options(carla-native-plugin PRIVATE - ../source/plugin/symbols/carla-native-plugin.def + ${CMAKE_CURRENT_SOURCE_DIR}/../source/plugin/symbols/carla-native-plugin.def ) else() target_link_options(carla-native-plugin PRIVATE - -Wl,--version-script=../source/plugin/symbols/carla-native-plugin.version + -Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/../source/plugin/symbols/carla-native-plugin.version ) endif()