Skip to content

Commit c1698e8

Browse files
committed
MDEV-16303 - do not install wsrep.ini on Windows
1 parent 6aa50ba commit c1698e8

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

support-files/CMakeLists.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,20 @@ ELSE()
4141
SET(inst_location ${INSTALL_SUPPORTFILESDIR})
4242
ENDIF()
4343

44-
FOREACH(inifile my-huge my-innodb-heavy-4G my-large my-medium my-small wsrep)
45-
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${inifile}.cnf.sh
44+
FOREACH(inifile my-huge my-innodb-heavy-4G my-large my-medium my-small)
45+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${inifile}.cnf.sh
4646
${CMAKE_CURRENT_BINARY_DIR}/${inifile}.${ini_file_extension} @ONLY)
4747
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/${inifile}.${ini_file_extension}
4848
DESTINATION ${inst_location} COMPONENT IniFiles)
4949
ENDFOREACH()
5050

51+
IF(WITH_WSREP)
52+
CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/wsrep.cnf.sh
53+
${CMAKE_CURRENT_BINARY_DIR}/wsrep.${ini_file_extension} @ONLY)
54+
INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/wsrep.${ini_file_extension}
55+
DESTINATION ${inst_location} COMPONENT IniFiles)
56+
ENDIF()
57+
5158
IF(UNIX)
5259
SET(prefix ${CMAKE_INSTALL_PREFIX})
5360
FOREACH(script mysqld_multi.server mysql-log-rotate binary-configure wsrep_notify)

0 commit comments

Comments
 (0)