summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2021-09-05 19:35:21 +0200
committerVladislav Vaintroub <wlad@mariadb.com>2021-09-06 13:55:14 +0200
commitd8943b0cc3ecb10dc68542e7846f9411a35f0d69 (patch)
treefdd48a272435518d33a6c722818b5e12e219803b /CMakeLists.txt
parent7dd85c0ffdd3bc12d8b83b1f6c43f75d30cb5e37 (diff)
downloadmariadb-git-d8943b0cc3ecb10dc68542e7846f9411a35f0d69.tar.gz
MDEV-26527 speedup appveyor build
Define custom target for minimal testable build use it in appveyor.yml
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt59
1 files changed, 43 insertions, 16 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b8b3f5c7d12..5301dc563af 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,22 +33,11 @@ PROJECT(MySQL)
# in RPM's:
#set(CPACK_RPM_SPEC_MORE_DEFINE "%define __spec_install_post /bin/true")
-
-IF(POLICY CMP0022)
- CMAKE_POLICY(SET CMP0022 NEW)
-ENDIF()
-IF(POLICY CMP0048)
- CMAKE_POLICY(SET CMP0048 NEW)
-ENDIF()
-IF(POLICY CMP0054)
- CMAKE_POLICY(SET CMP0054 NEW)
-ENDIF()
-IF(POLICY CMP0075)
- CMAKE_POLICY(SET CMP0075 NEW)
-ENDIF()
-IF(POLICY CMP0069)
- CMAKE_POLICY(SET CMP0069 NEW)
-ENDIF()
+FOREACH(p CMP0022 CMP0046 CMP0040 CMP0048 CMP0054 CMP0075 CMP0069)
+ IF(POLICY ${p})
+ CMAKE_POLICY(SET ${p} NEW)
+ ENDIF()
+ENDFOREACH()
MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")
@@ -563,3 +552,41 @@ IF(NON_DISTRIBUTABLE_WARNING)
MESSAGE(WARNING "
You have linked MariaDB with ${NON_DISTRIBUTABLE_WARNING} libraries! You may not distribute the resulting binary. If you do, you will put yourself into a legal problem with the Free Software Foundation.")
ENDIF()
+
+IF(NOT WITHOUT_SERVER)
+ # Define target for minimal mtr-testable build
+ ADD_CUSTOM_TARGET(minbuild)
+ ADD_DEPENDENCIES(minbuild
+ aria_chk
+ aria_pack
+ mariadb
+ mariadb-admin
+ mariadb-binlog
+ mariadb-check
+ mariadb-client-test
+ mariadb-conv
+ mariadb-dump
+ mariadb-import
+ mariadb-plugin
+ mariadb-show
+ mariadb-slap
+ mariadb-test
+ mariadb-tzinfo-to-sql
+ mariadb-upgrade
+ mariadbd
+ my_print_defaults
+ my_safe_process
+ myisam_ftdump
+ myisamchk
+ myisamlog
+ myisampack
+ perror
+ replace)
+ IF(WIN32)
+ ADD_DEPENDENCIES(minbuild echo mariadb-install-db my_safe_kill)
+ ENDIF()
+ ADD_CUSTOM_TARGET(smoketest
+ COMMAND perl ./mysql-test-run.pl main.1st
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR}/mysql-test)
+ ADD_DEPENDENCIES(smoketest minbuild)
+ENDIF()