From: Giuseppe Bilotta Date: Thu, 11 Aug 2011 08:06:48 +0000 (+0200) Subject: Project uses C++, so use CHECK_CXX_COMPILER_FLAG X-Git-Url: http://81.2.79.47:8989/gitweb/?a=commitdiff_plain;h=76fb792544a794d22c439b6f2731f4be5911438e;p=zefram%2Fminetest%2Fminetest_engine.git Project uses C++, so use CHECK_CXX_COMPILER_FLAG Although this doesn't change much for our specific case, it can make a difference for some flags, so use the appropriate macro. --- diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5bdfc7ee..4d95da35 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -209,7 +209,7 @@ endif(BUILD_SERVER) # Set some optimizations and tweaks # -include(CheckCCompilerFlag) +include(CheckCXXCompilerFlag) if(MSVC) # Visual Studio @@ -238,7 +238,7 @@ else() endif() if(NOT APPLE) - check_c_compiler_flag("-Wno-unused-but-set-variable" HAS_UNUSED_BUT_SET_VARIABLE_WARNING) + CHECK_CXX_COMPILER_FLAG("-Wno-unused-but-set-variable" HAS_UNUSED_BUT_SET_VARIABLE_WARNING) if(HAS_UNUSED_BUT_SET_VARIABLE_WARNING) set(WARNING_FLAGS "${WARNING_FLAGS} -Wno-unused-but-set-variable") endif(HAS_UNUSED_BUT_SET_VARIABLE_WARNING)