Skip to content
/ server Public

Commit fafa57b

Browse files
gkodinovvuvova
authored andcommitted
Follow up for MDEV-384999: fix cmake warnings:
Moved the include inside the check for cmake version so that it doesn't fail on older cmake's.
1 parent 33413c6 commit fafa57b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysys/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,8 +184,8 @@ ENDIF()
184184
# This causes cmake to append dbug twice when you append mysys as a library.
185185
# And you get a warning from the MacOSX linker.
186186
# TODO: to remove the circular dependency and this workaround.
187-
include(CheckLinkerFlag)
188187
IF(APPLE AND (CMAKE_VERSION VERSION_GREATER_EQUAL "3.18"))
188+
include(CheckLinkerFlag)
189189
CHECK_LINKER_FLAG(C "LINKER:-no_warn_duplicate_libraries" HAVE_NO_WARN_DUPLICATE_LIBRARIES)
190190
IF(HAVE_NO_WARN_DUPLICATE_LIBRARIES)
191191
TARGET_LINK_OPTIONS(mysys INTERFACE LINKER:-no_warn_duplicate_libraries)

0 commit comments

Comments
 (0)