From c800a9e44c5968bb5acae76ac47f6d9057b2de4d Mon Sep 17 00:00:00 2001 From: SachinVin Date: Mon, 18 Apr 2022 13:08:33 +0530 Subject: [PATCH] src/CmakeLists.txt: Android: Prefer target_include_directories over include_directories --- src/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 60cce39af6..b3a5bc6405 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -119,8 +119,8 @@ if (ENABLE_QT) endif() if (ANDROID) - include_directories(android/app/src/main) add_subdirectory(android/app/src/main/jni) + target_include_directories(main PRIVATE android/app/src/main) else() add_subdirectory(dedicated_room) endif()