From 1491770dba512e47766786e07d3fd031619108f3 Mon Sep 17 00:00:00 2001 From: Xiaofeng Wang Date: Wed, 3 Aug 2022 22:27:54 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E6=88=90=E7=9A=84=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=94=BE=E5=88=B0=E5=BD=93=E5=89=8D=E6=A8=A1=E5=9D=97=E7=9A=84?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/CMakeLists.txt b/api/CMakeLists.txt index 227c07cd..6f46635d 100644 --- a/api/CMakeLists.txt +++ b/api/CMakeLists.txt @@ -54,12 +54,12 @@ target_include_directories(mk_api "$" "$" PUBLIC + "$" "$") if(CMAKE_SYSTEM_NAME MATCHES "Linux") target_link_libraries(mk_api -Wl,--start-group ${LINK_LIBRARIES} -Wl,--end-group) elseif(CMAKE_SYSTEM_NAME MATCHES "Android") - include_directories("${CMAKE_BINARY_DIR}") target_link_libraries(mk_api log -Wl,--start-group ${LINK_LIBRARIES} -Wl,--end-group) else() target_link_libraries(mk_api jsoncpp ${LINK_LIBRARIES}) @@ -69,7 +69,7 @@ generate_export_header(mk_api EXPORT_MACRO_NAME API_EXPORT BASE_NAME MK_API STATIC_DEFINE MediaKitApi_STATIC - EXPORT_FILE_NAME "${CMAKE_BINARY_DIR}/mk_export.h") + EXPORT_FILE_NAME "${CMAKE_CURRENT_BINARY_DIR}/mk_export.h") add_subdirectory(tests)