mirror of https://github.com/Icinga/icinga2.git
parent
1bf27011df
commit
82961d8977
|
@ -229,15 +229,17 @@ if(UNIX)
|
|||
endif()
|
||||
endif()
|
||||
|
||||
set(CXX_FEATURE_OVERRIDE OFF)
|
||||
if(NOT MSVC)
|
||||
set(CXX_FEATURE_OVERRIDE OFF)
|
||||
|
||||
if(_ICINGA2_CXX11)
|
||||
include(CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles("class Base { public: virtual void test(void) { } }; class Derived : public Base { virtual void test(void) override { } }; int main(){}" CXX_FEATURE_OVERRIDE)
|
||||
endif()
|
||||
if(_ICINGA2_CXX11)
|
||||
include(CheckCXXSourceCompiles)
|
||||
check_cxx_source_compiles("class Base { public: virtual void test(void) { } }; class Derived : public Base { virtual void test(void) override { } }; int main(){}" CXX_FEATURE_OVERRIDE)
|
||||
endif()
|
||||
|
||||
if(NOT CXX_FEATURE_OVERRIDE)
|
||||
add_definitions("-Doverride=")
|
||||
if(NOT CXX_FEATURE_OVERRIDE)
|
||||
add_definitions("-Doverride=")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h ESCAPE_QUOTES)
|
||||
|
|
Loading…
Reference in New Issue