IAP GITLAB

Skip to content
Snippets Groups Projects
Commit e36e1d13 authored by Dominik Baack's avatar Dominik Baack Committed by ralfulrich
Browse files

Fixed fenv.h detection

parent fbd877af
No related branches found
No related tags found
No related merge requests found
# #
# Floating point exception support - select implementation to use # Floating point exception support - select implementation to use
# #
try_compile (HAS_FEENABLEEXCEPT "${CMAKE_CURRENT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/try_feenableexcept.cc") include(CheckIncludeFileCXX)
CHECK_INCLUDE_FILE_CXX("fenv.h" HAS_FEENABLEEXCEPT)
if (HAS_FEENABLEEXCEPT) # FLOATING_POINT_ENVIRONMENT if (HAS_FEENABLEEXCEPT) # FLOATING_POINT_ENVIRONMENT
set (CORSIKA_HAS_FEENABLEEXCEPT 1) set (CORSIKA_HAS_FEENABLEEXCEPT 1)
set_property(DIRECTORY ${CMAKE_HOME_DIRECTORY} APPEND PROPERTY COMPILE_DEFINITIONS "HAS_FEENABLEEXCEPT") set_property(DIRECTORY ${CMAKE_HOME_DIRECTORY} APPEND PROPERTY COMPILE_DEFINITIONS "HAS_FEENABLEEXCEPT")
endif () endif ()
#
# General OS Detection
#
if (${CMAKE_SYSTEM_NAME} MATCHES "Windows") if (${CMAKE_SYSTEM_NAME} MATCHES "Windows")
set(CORSIKA_OS_WINDOWS TRUE) set(CORSIKA_OS_WINDOWS TRUE)
set (CORSIKA_OS "Windows") set (CORSIKA_OS "Windows")
......
...@@ -46,8 +46,9 @@ namespace corsika { ...@@ -46,8 +46,9 @@ namespace corsika {
return instance; return instance;
} }
Singleton(const Singleton&) = delete; Singleton(const Singleton&) = delete; //Singleton Classes should not be copied. Removes move constructor and move assignment as well
Singleton& operator=(const Singleton&) = delete; Singleton& operator=(const Singleton&) = delete; //Singleton Classes should not be copied.
protected: protected:
// derived class can call ctor and dtor // derived class can call ctor and dtor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment