Andreas Lauser
9169bee053
use extended regular expressions in the test for std::regex
...
for some compilers (e.g., GCC < 4.9) the default is buggy and
opm-parser thus uses extended expressions...
thanks to [at]bska for digging this up!
2014-07-08 13:24:34 +02:00
Andreas Lauser
4e298bb4f9
FindCXX11Features: check for a usable std::regex
...
and add a config.h variable in the opm-parser test.
2014-07-07 17:58:07 +02:00
Andreas Lauser
c28f2bc0a0
C++-11 Features: add test for std::is_integral
2013-09-05 13:00:45 +02:00
Roland Kaufmann
5cc1f0a34c
Use libc++ runtime if necessary for C++11 compliance
...
If we are using the Apple toolchain on MacOS X, we must use the
newer runtime and not the old GCC 4.2 fork, in order to get the
C++11 library features (such as std::shared_ptr).
2013-08-27 09:24:34 +02:00
Andreas Lauser
fd781af125
cmake: do not quote variables for config.h anymore
...
v2: incorporate Roland's nitpicks (I hope)
v3: It was decided that it's better to change the default behavior
v4: make sure the CMake syntax is correct even if the value of the
variable contains spaces (if it contains double quotes it's a
different matter, but that's pretty much a corner case, IMHO)
v5: properly escape backslash and double quote characters in the cmake
syntax
2013-08-27 09:24:23 +02:00
Roland Kaufmann
c3249a256a
Set standard variables for package after probing
...
Standard variables must be set in order for the package to be picked
up with the OpmFind/OpmPackage dance.
2013-08-19 20:01:23 +02:00
Andreas Lauser
9f5ab8e257
add test for <type_traits> to FindCXX11Features.cmake
...
I fogot this one yesterday...
2013-08-16 23:55:30 +02:00
Andreas Lauser
6ff3b56b49
also test for std::unique_ptr
2013-08-16 23:55:29 +02:00
Andreas Lauser
999d198181
detect the presence of std::shared_ptr
...
since GCC 4.4 supports it, make it mandatory as well...
2013-08-16 23:55:27 +02:00
Roland Kaufmann
0bac3406dd
Only display an error message if C++11 support is noted as REQUIRED
2013-08-14 23:39:04 +02:00
Andreas Lauser
bec3d5db2c
make the c++-2011 feature set of GCC 4.4 mandatory
...
we now produce an error even if the module in question does not
actually use some of these features.
2013-07-30 21:12:23 +02:00
Andreas Lauser
e6cf509ea9
check for the C++-2011 'auto' keyword.
...
It seems like the corresponding FindCXX11Features.cmake file
was not updated for this module.
2013-07-30 21:12:23 +02:00
Bård Skaflestad
116f39e8ab
Import CMake support from OPM-Core
2013-05-15 10:24:52 +02:00