Change cmake target thirdparty type to INTERFACE

This commit is contained in:
halx99 2023-09-12 19:31:41 +08:00
parent ba37e3009d
commit e7b9e5feb7
2 changed files with 7 additions and 12 deletions

View File

@ -10,12 +10,7 @@ function(setup_ax_extension_config target_name)
cmake_parse_arguments(opt "" "${options}" ""
"" ${ARGN} )
if(ANDROID)
target_link_libraries(${target_name} INTERFACE ${_AX_CORE_LIB})
target_include_directories(${target_name} PRIVATE $<TARGET_PROPERTY:${_AX_CORE_LIB},INTERFACE_INCLUDE_DIRECTORIES>)
else()
target_link_libraries(${target_name} ${_AX_CORE_LIB})
endif()
if(BUILD_SHARED_LIBS)
target_compile_definitions(${target_name} PRIVATE _USREXDLL=1)

View File

@ -7,8 +7,8 @@
# include <cxxabi.h>
#endif
#if AX_TARGET_PLATFORM == AX_PLATFORM_ANDROID
#define FMT_HEADER_ONLY
#if !defined(FMT_HEADER_ONLY)
# define FMT_HEADER_ONLY
#endif
#include "fmt/format.h"