mirror of https://github.com/axmolengine/axmol.git
Change cmake target thirdparty type to INTERFACE
This commit is contained in:
parent
ba37e3009d
commit
e7b9e5feb7
|
@ -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)
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue