diff --git a/conan/tools/cmake/toolchain/blocks.py b/conan/tools/cmake/toolchain/blocks.py index e19b113a90f..7767a7a6d4a 100644 --- a/conan/tools/cmake/toolchain/blocks.py +++ b/conan/tools/cmake/toolchain/blocks.py @@ -375,7 +375,7 @@ class AndroidSystemBlock(Block): {% if android_use_legacy_toolchain_file %} set(ANDROID_USE_LEGACY_TOOLCHAIN_FILE {{ android_use_legacy_toolchain_file }}) {% endif %} - include({{ android_ndk_path }}/build/cmake/android.toolchain.cmake) + include("{{ android_ndk_path }}/build/cmake/android.toolchain.cmake") """) def context(self): diff --git a/test/integration/toolchains/cmake/test_cmaketoolchain.py b/test/integration/toolchains/cmake/test_cmaketoolchain.py index 7af778df487..c9629d56562 100644 --- a/test/integration/toolchains/cmake/test_cmaketoolchain.py +++ b/test/integration/toolchains/cmake/test_cmaketoolchain.py @@ -831,7 +831,7 @@ def configure(self): conan_toolchain = client.load(os.path.join(client.current_folder, "conan_toolchain.cmake")) assert "set(ANDROID_PLATFORM android-23)" in conan_toolchain assert "set(ANDROID_ABI x86_64)" in conan_toolchain - assert "include(/foo/build/cmake/android.toolchain.cmake)" in conan_toolchain + assert 'include("/foo/build/cmake/android.toolchain.cmake")' in conan_toolchain client.run("create . --name=foo --version=1.0 " + settings)