---
CMakeLists.txt | 1 +
khotkeys/CMakeLists.txt | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b87e76e..9e88e52 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -23,6 +23,7 @@ set( VERSION "R14" )
include( FindPkgConfig )
include( CheckIncludeFile )
include( CheckCSourceRuns )
+include( CheckCXXSourceRuns )
include( CheckCXXSourceCompiles )
include( CheckLibraryExists )
include( CheckFunctionExists )
diff --git a/khotkeys/CMakeLists.txt b/khotkeys/CMakeLists.txt
index b2529ae..39c8411 100644
--- a/khotkeys/CMakeLists.txt
+++ b/khotkeys/CMakeLists.txt
@@ -9,7 +9,7 @@
#
#################################################
-check_c_source_runs( "
+check_cxx_source_runs( "
class A { public: virtual A* me(); };
class X { public: int x; virtual void ff() {}; };
class B : public X, public A { public: virtual B* me(); };
--
1.7.10.4.153.g8c399cf