Просмотр исходного кода

static release build fix

(cherry picked from commit 2e4bc739161edaef50b7689f527df99337a1d13f)
mccakit 5 месяцев назад
Родитель
Сommit
db07924104
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      CMakeLists.txt

+ 1 - 3
CMakeLists.txt

@@ -1489,9 +1489,7 @@ if(ANDROID)
       endif()
       endif()
     endif()
     endif()
   endif()
   endif()
-  if(TARGET SDL3-shared)
-    target_link_options(SDL3-shared PRIVATE -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../android-project/android.export.sym)
-  elseif(TARGET SDL3-static)
+  if(TARGET SDL3-static)
     target_link_options(SDL3-static PRIVATE -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../android-project/android.export.sym)
     target_link_options(SDL3-static PRIVATE -Wl,--version-script=${CMAKE_CURRENT_LIST_DIR}/../android-project/android.export.sym)
   endif()
   endif()