From 33aada30d9c1acdf0ff7a9e37a9de3cae0ad24cf Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Fri, 15 Jun 2012 01:42:27 -0500 Subject: Fix covariant return check This partially resolves Bug 1025 Thanks to 'Nix' for the patch! --- CMakeLists.txt | 1 + khotkeys/CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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(); }; -- cgit v1.2.3