From c9cd1347cc421c86819c74873bf5056ebe00eb1d Mon Sep 17 00:00:00 2001 From: janbar Date: Sat, 2 Dec 2023 13:50:21 +0100 Subject: [PATCH] fix top source dir --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 77d2da65..d049151f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.8.2) -set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake") +set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") project(osmin C CXX) @@ -230,10 +230,10 @@ if(ANDROID) NAME ${APP_NAME} VERSION_CODE ${APP_VERSION_CODE} PACKAGE_NAME ${APP_ID} - PACKAGE_SOURCES ${CMAKE_SOURCE_DIR}/android/package-sources + PACKAGE_SOURCES ${PROJECT_SOURCE_DIR}/android/package-sources BUILDTOOLS_REVISION ${QT_ANDROID_SDK_BUILDTOOLS_REVISION} DEPENDS ssl crypto ${SHARED_LIBOMP} - PLUGINS ${CMAKE_SOURCE_DIR}/resources + PLUGINS ${PROJECT_SOURCE_DIR}/resources KEYSTORE ${KEYSTORE_FILE} ${KEYSTORE_ALIAS} KEYSTORE_PASSWORD ${KEYSTORE_PASSWORD} )