Kouhei Sutou
null+****@clear*****
Tue Mar 26 16:45:19 JST 2013
Kouhei Sutou 2013-03-26 16:45:19 +0900 (Tue, 26 Mar 2013) New Revision: 0336897e7fab2f503c7baf4f35aadcda437b8592 https://github.com/mroonga/mroonga/commit/0336897e7fab2f503c7baf4f35aadcda437b8592 Message: cmake: set g++ related compiler option only when compiler is g++ Modified files: CMakeLists.txt Modified: CMakeLists.txt (+3 -1) =================================================================== --- CMakeLists.txt 2013-03-26 16:42:20 +0900 (8e78a2a) +++ CMakeLists.txt 2013-03-26 16:45:19 +0900 (e4a2611) @@ -136,7 +136,9 @@ else() ${MROONGA_SOURCES} ${LIBMRN_NO_MYSQL_SOURCES} ${LIBMRN_NEED_MYSQL_SOURCES}) - set(MYSQL_CFLAGS "${MYSQL_CFLAGS} -Werror -fno-implicit-templates -fno-exceptions -fno-rtti -felide-constructors") + if(CMAKE_COMPILER_IS_GNUCXX) + 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}") set_target_properties(ha_mroonga PROPERTIES -------------- next part -------------- HTML����������������������������...Download