Skip to content

Commit efbd4bb

Browse files
committed
cmake: fix warnings when PLUGIN_MROONGA=NO
1 parent d33c883 commit efbd4bb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

storage/mroonga/CMakeLists.txt

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -392,20 +392,17 @@ else()
392392
endif()
393393

394394
if(GROONGA_NORMALIZER_MYSQL_FOUND)
395-
set_property(TARGET mroonga APPEND PROPERTY
396-
COMPILE_DEFINITIONS "WITH_GROONGA_NORMALIZER_MYSQL=1")
395+
add_definitions("-DWITH_GROONGA_NORMALIZER_MYSQL=1")
397396
if(MRN_GROONGA_NORMALIZER_MYSQL_EMBED)
398-
set_property(TARGET mroonga APPEND PROPERTY
399-
COMPILE_DEFINITIONS "MRN_GROONGA_NORMALIZER_MYSQL_EMBEDDED")
397+
add_definitions("-DMRN_GROONGA_NORMALIZER_MYSQL_EMBEDDED")
400398
else()
401399
set_property(TARGET mroonga APPEND PROPERTY
402400
COMPILE_DEFINITIONS "GROONGA_NORMALIZER_MYSQL_PLUGIN_NAME=\"normalizers/mysql\"")
403401
endif()
404402
endif()
405403

406404
if(MRN_GROONGA_EMBED)
407-
set_property(TARGET mroonga APPEND PROPERTY
408-
COMPILE_DEFINITIONS "MRN_GROONGA_EMBEDDED")
405+
add_definitions("-DMRN_GROONGA_EMBEDDED")
409406
endif()
410407

411408
set(MRN_DEFAULT_PARSER "" CACHE STRING

0 commit comments

Comments
 (0)