From d82cb1f43cab7976e25c6e9ff3e4ae17789ee11c Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sun, 3 Jan 2021 15:18:01 +0100 Subject: [PATCH] Install EXPORT_ANDROID_MK only if(ANDROID) Signed-off-by: Andreas Sturmlechner --- CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 2ee1cb4..eec27c8 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -321,7 +321,10 @@ install(FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}/${PROJECT_NAME}ConfigVersion.cmake" DESTINATION ${ConfigFilesLocation} ) -install(EXPORT_ANDROID_MK ${PROJECT_NAME}Targets DESTINATION share/ndk-modules) + +if (ANDROID) + install(EXPORT_ANDROID_MK ${PROJECT_NAME}Targets DESTINATION share/ndk-modules) +endif () if (WIN32) install(FILES mime/packages/freedesktop.org.xml DESTINATION mime/packages) -- 2.30.0