Commit 1797049a authored by Sylvain Berfini's avatar Sylvain Berfini 🎩

Updated CMakeLists to use ENABLE_ARCH_SUFFIX option

parent f4da7910
......@@ -90,7 +90,11 @@ if(ENABLE_SHARED)
set_target_properties(bctoolbox PROPERTIES CXX_STANDARD 11 CXX_STANDARD_REQUIRED ON)
endif()
if(ANDROID)
set_target_properties(bctoolbox PROPERTIES OUTPUT_NAME "bctoolbox-${CMAKE_ANDROID_ARCH_ABI}")
if(ENABLE_ARCH_SUFFIX)
set_target_properties(bctoolbox PROPERTIES OUTPUT_NAME "bctoolbox-${CMAKE_ANDROID_ARCH_ABI}")
else()
set_target_properties(bctoolbox PROPERTIES OUTPUT_NAME "bctoolbox")
endif()
else()
# Do not version shared library on Android
set_target_properties(bctoolbox PROPERTIES SOVERSION ${BCTOOLBOX_SO_VERSION})
......@@ -117,7 +121,11 @@ if(ENABLE_SHARED)
target_compile_definitions(bctoolbox-tester PRIVATE "-DBCTBX_EXPORTS")
endif()
if(ANDROID)
set_target_properties(bctoolbox-tester PROPERTIES OUTPUT_NAME "bctoolbox-tester-${CMAKE_ANDROID_ARCH_ABI}")
if(ENABLE_ARCH_SUFFIX)
set_target_properties(bctoolbox-tester PROPERTIES OUTPUT_NAME "bctoolbox-tester-${CMAKE_ANDROID_ARCH_ABI}")
else()
set_target_properties(bctoolbox-tester PROPERTIES OUTPUT_NAME "bctoolbox-tester")
endif()
else()
# Do not version shared library on Android
set_target_properties(bctoolbox-tester PROPERTIES SOVERSION ${BCTOOLBOXTESTER_SO_VERSION})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment