IAP GITLAB
Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
corsika
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Pranav Sampathkumar
corsika
Commits
e36e1d13
Commit
e36e1d13
authored
4 years ago
by
Dominik Baack
Committed by
ralfulrich
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fixed fenv.h detection
parent
fbd877af
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cmake/CorsikaDefines.cmake
+5
-2
5 additions, 2 deletions
cmake/CorsikaDefines.cmake
corsika/framework/utility/Singleton.hpp
+3
-2
3 additions, 2 deletions
corsika/framework/utility/Singleton.hpp
with
8 additions
and
4 deletions
cmake/CorsikaDefines.cmake
+
5
−
2
View file @
e36e1d13
#
#
# 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"
)
...
...
This diff is collapsed.
Click to expand it.
corsika/framework/utility/Singleton.hpp
+
3
−
2
View file @
e36e1d13
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment