Navigation Menu

Skip to content

Commit

Permalink
cmake: don't add GCC related compile flags on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed May 20, 2012
1 parent a725c7f commit 4b0c102
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Expand Up @@ -88,9 +88,11 @@ add_library(ha_mroonga MODULE
${MROONGA_SOURCES}
${LIBMRN_NO_MYSQL_SOURCES}
${LIBMRN_NEED_MYSQL_SOURCES})
if(NOT WIN32)
set(MYSQL_CFLAGS "${MYSQL_CFLAGS} -Werror -fno-implicit-templates -fno-exceptions -fno-rtti -felide-constructors")
endif()
set_source_files_properties(${MROONGA_SOURCES} PROPERTIES
COMPILE_FLAGS
"${MYSQL_CFLAGS} -Werror -fno-implicit-templates -fno-exceptions -fno-rtti -felide-constructors")
COMPILE_FLAGS "${MYSQL_CFLAGS}")
set_target_properties(ha_mroonga PROPERTIES
COMPILE_DEFINITIONS "MYSQL_DYNAMIC_PLUGIN"
PREFIX ""
Expand Down

0 comments on commit 4b0c102

Please sign in to comment.