null+****@clear*****
null+****@clear*****
2012年 5月 20日 (日) 16:26:54 JST
Kouhei Sutou 2012-05-20 16:26:54 +0900 (Sun, 20 May 2012) New Revision: 4b0c10271d56f358e7be7c43a218e31b2a038a3a Log: cmake: don't add GCC related compile flags on Windows Modified files: CMakeLists.txt Modified: CMakeLists.txt (+4 -2) =================================================================== --- CMakeLists.txt 2012-05-20 16:25:15 +0900 (70930b6) +++ CMakeLists.txt 2012-05-20 16:26:54 +0900 (6b16124) @@ -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 ""