mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Replace ADD_EXECUTABLE with MYSQL_ADD_EXECUTABLE for binaries that are installed.
MYSQL_ADD_EXECUTABLE will instructs CPack where to install the exe. On Windows, it also adds version resource and if -DSIGNCODE was given, will sign the exe in packaging step.
This commit is contained in:
parent
2ff2d1873a
commit
555d46ea7f
11 changed files with 66 additions and 117 deletions
|
|
@ -19,6 +19,7 @@ if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" GREATER 2.6)
|
|||
CMAKE_POLICY(VERSION 2.8)
|
||||
endif()
|
||||
|
||||
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
|
||||
|
||||
# First, decide about build type (debug or release)
|
||||
# If custom compiler flags are set or cmake is invoked with -DCMAKE_BUILD_TYPE,
|
||||
|
|
@ -70,6 +71,7 @@ INCLUDE(cmake/libutils.cmake)
|
|||
INCLUDE(cmake/dtrace.cmake)
|
||||
INCLUDE(cmake/plugin.cmake)
|
||||
INCLUDE(cmake/install_macros.cmake)
|
||||
INCLUDE(mysql_add_executable)
|
||||
|
||||
# Handle options
|
||||
OPTION(DISABLE_SHARED
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue