diff --git a/CMakeLists.txt b/CMakeLists.txt index 3da5b2f63..ecda50655 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 b2529ae04..39c84111e 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(); };