aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-11 10:06:48 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-08-11 10:06:48 +0200
commit76fb792544a794d22c439b6f2731f4be5911438e (patch)
treebc89e92126a7c6211232a928a55ed9adaae1ca68 /src
parentff35014eff73aadc3ffa957bd860958c9aeefd33 (diff)
downloadminetest-76fb792544a794d22c439b6f2731f4be5911438e.tar.gz
minetest-76fb792544a794d22c439b6f2731f4be5911438e.tar.bz2
minetest-76fb792544a794d22c439b6f2731f4be5911438e.zip
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.
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 5bdfc7eee..4d95da35b 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)