From e6024a2e020ce28f87a785522b99212f91ed3ce4 Mon Sep 17 00:00:00 2001 From: "Thiago Marcos P. Santos" Date: Sun, 8 Mar 2020 17:43:45 +0200 Subject: [build] Do not do license check on core only builds (#16276) Users will add more dependencies and the script will break the build. --- CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b7c98eac3..588975e589 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -980,8 +980,6 @@ set_target_properties( INTERFACE_MAPBOX_LICENSE ${PROJECT_SOURCE_DIR}/LICENSE.md ) -include(${PROJECT_SOURCE_DIR}/scripts/license.cmake) - set_property(TARGET mbgl-core PROPERTY FOLDER Core) add_library( @@ -994,7 +992,11 @@ endif() if(MBGL_WITH_CORE_ONLY) return() -elseif(MBGL_WITH_QT) +endif() + +include(${PROJECT_SOURCE_DIR}/scripts/license.cmake) + +if(MBGL_WITH_QT) include(${PROJECT_SOURCE_DIR}/platform/qt/qt.cmake) elseif(CMAKE_SYSTEM_NAME STREQUAL Android) include(${PROJECT_SOURCE_DIR}/platform/android/android.cmake) -- cgit v1.2.1