Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
GANILAnalysis
MFMlib
Commits
d535b3b1
Commit
d535b3b1
authored
Jan 13, 2022
by
Antoine Lemasson
Browse files
addin c++ checks
parent
f16596a0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
sources/CMakeLists.txt
sources/CMakeLists.txt
+10
-0
No files found.
sources/CMakeLists.txt
View file @
d535b3b1
...
...
@@ -7,6 +7,16 @@ include ( CTest )
ENABLE_TESTING
()
ADD_TEST
(
MFMlibrary MFMtest.exe
"-test -v=6"
)
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++11"
WITH_CPP11
)
if
(
WITH_CPP11
)
set
(
CMAKE_CXX_FLAGS
"-std=c++11
${
CMAKE_CXX_FLAGS
}
"
)
else
(
WITH_CPP11
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++0x"
WITH_CPP0X
)
if
(
WITH_CPP0X
)
set
(
CMAKE_CXX_FLAGS
"-std=c++0x
${
CMAKE_CXX_FLAGS
}
"
)
endif
(
WITH_CPP0X
)
endif
(
WITH_CPP11
)
if
(
DEBUG
)
set
(
CMAKE_BUILD_TYPE Debug
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment