Commit Graph

3722 Commits

Author SHA1 Message Date
Bård Skaflestad
4f11987bb7 Merge remote-tracking branch 'upstream/master' 2013-08-01 18:37:21 +02:00
Bård Skaflestad
900a21adb3 Merge pull request #296 from rolk/296_runpath
Embed original dependency paths in installed library
2013-08-01 09:36:54 -07:00
Andreas Lauser
667f056a73 Merge pull request #295 from rolk/295_cxxreq
Only fail if C++11 support is noted as REQUIRED
2013-08-01 06:33:05 -07:00
Roland Kaufmann
db90eff1c6 OPM Core uses C++11 features as of commit 562bcf2 2013-08-01 15:13:56 +02:00
Roland Kaufmann
e5fc56ee83 Exempt distribution packages from having RUNPATH
Files that are distributed as packages should always assume that all
the other libraries it depends on is as packages too, in the system
directories, so there is no need to have a RUNPATH embedded in them.
2013-08-01 14:32:59 +02:00
Roland Kaufmann
b46441085a Use RUNPATH in installed library by default
When checking out from source code, the paths that were used to
configure the project should be carried on to the installed binary,
so the same libraries are used without much effort.

By using RUNPATH instead of (just) RPATH, it can be overridden with
LD_LIBRARY_PATH if the user so desires.
2013-08-01 14:29:04 +02:00
Roland Kaufmann
e9874b75a4 Revert "Demote consequence of not having C++11 support"
This reverts commit d6c2e52d63. The C++11
find module now checks for the necessary level.
2013-08-01 13:44:27 +02:00
Roland Kaufmann
0ed0ac61e9 Only display an error message if C++11 support is noted as REQUIRED 2013-08-01 13:44:27 +02:00
Bård Skaflestad
7215936bce Merge remote-tracking branch 'upstream/master' 2013-08-01 12:41:04 +02:00
Bård Skaflestad
92fca433be Merge pull request #294 from rolk/294_unittests
Fix non-unit tests so they compile again
2013-08-01 03:36:10 -07:00
Roland Kaufmann
348da6ba32 Indent consistently with whitespace instead of tab 2013-08-01 12:16:20 +02:00
Roland Kaufmann
d400b2e7fd Rename test itself to not conflict with local variable 2013-08-01 12:14:23 +02:00
Roland Kaufmann
404413a226 Insert remainder to keep version number is sync. 2013-08-01 11:27:22 +02:00
Roland Kaufmann
f2f199258d Define API version macros for other code to query
Note the distinction between the version (1.0) and the release label
(2013.03). The latter is not really usable to check for API
compatibility. (See <http://www.semver.org>).
2013-08-01 11:26:10 +02:00
Roland Kaufmann
5d1931cb7d Add warning that this directory is not actively maintained. 2013-08-01 10:46:01 +02:00
Roland Kaufmann
5180f9faf0 Graduate testing of metric unit to a proper unit test
Notice the confusing naming.
2013-08-01 10:40:55 +02:00
Roland Kaufmann
cc84b584ff Convert testing of metric units to use Boost::UnitTest 2013-08-01 10:40:55 +02:00
Roland Kaufmann
3bd2f07d9c Convert cubic interpolator to use Boost::UnitTest 2013-08-01 10:40:55 +02:00
Roland Kaufmann
67baa6b8e2 Cartesian grid test is now a proper unit test 2013-08-01 10:40:55 +02:00
Roland Kaufmann
6fc2ff197a Convert Cartesian grid test to use Boost::UnitTest 2013-08-01 10:40:55 +02:00
Roland Kaufmann
47f0b97fcc Graduate these tests to unit tests
Although they don't use Boost::UnitTest, they can at least pass, so we
can use them to detect simple compilation and runtime errors, although
we miss the semantic check.

(If you have time, please make them proper unit tests)
2013-08-01 10:40:55 +02:00
Roland Kaufmann
f6bfb58d45 Fix non-unit tests so that they compile again
Account for header, namespace and API changes.
2013-08-01 10:40:55 +02:00
Bård Skaflestad
0ad891aaba Merge remote-tracking branch 'upstream/master' 2013-07-31 15:37:56 +02:00
Bård Skaflestad
e9b5a55b4b Merge pull request #293 from rolk/293_wogit
Make project buildable also without Git
2013-07-31 06:37:12 -07:00
Roland Kaufmann
1a04ae5125 Make project buildable also without Git
If Git is not found, revert to just dumping the label into the code.
(We currently have no way of getting the SHA into the tarball).
2013-07-31 15:08:51 +02:00
Bård Skaflestad
c8d2f9dde7 Merge remote-tracking branch 'upstream/master' 2013-07-31 14:46:04 +02:00
Bård Skaflestad
0e42c0e20c Merge pull request #292 from rolk/292_fastbuild
Add possibility to skip building tests and examples
2013-07-31 05:45:47 -07:00
Bård Skaflestad
7b12542041 Merge remote-tracking branch 'upstream/master' 2013-07-31 14:20:12 +02:00
Bård Skaflestad
93afe5fbb6 Merge pull request #291 from rolk/291_ertdep
Probe again later if ERT isn't found now
2013-07-31 05:19:47 -07:00
Roland Kaufmann
0e8b8191a9 Probe again later if ERT isn't found now
If we write a blank value into the cache, we tell CMake that ERT isn't
found and it won't check again. If we delete it from the cache in case
we didn't find the directories, then CMake will run the find module
again the next time we configure. Just probing for directories is cheap
so this is no problem. This allows us to install ERT, do a reconfigure
and it will then be picked up by the build system.

If we find ERT and it doesn't compile properly, a blank value will still
be written, and it won't try again the next time, so you must wipe the
cache if you *upgrade* ERT into a newer and more compatible version.
2013-07-31 14:17:41 +02:00
Roland Kaufmann
b53ba15a84 Let the AutoTools script disable tests and samples also 2013-07-31 14:13:56 +02:00
Bård Skaflestad
a478f8e0fc Merge remote-tracking branch 'upstream/master' 2013-07-31 14:09:46 +02:00
Roland Kaufmann
1378114cec Add a switch for examples similar to the one for tests
Running tests during development at least has a purpose, but compiling
all the samples *every* time is just an annoyance.
2013-07-31 14:03:53 +02:00
Roland Kaufmann
ea973849e0 Disable testing if BUILD_TESTING is switched off
This is an "official" switch for disable testing; our own code which
adds tests should adhere to it. (It is added by CTest)
2013-07-31 13:58:06 +02:00
Bård Skaflestad
3e803a4780 Merge pull request #290 from rolk/290_version
Embed version string into the library
2013-07-31 04:57:55 -07:00
Roland Kaufmann
6f43c7587f Don't update version info in Debug mode
It gets tiresome to rebuild the project everytime one makes changes to
any of the unit tests. We don't likely publish results based on the
debug code anyway, so tracking the version number there is not such a
pressing issue.
2013-07-31 13:14:30 +02:00
Bård Skaflestad
7e288662c7 Merge remote-tracking branch 'upstream/master' 2013-07-31 13:12:56 +02:00
Bård Skaflestad
1967631b83 Merge pull request #285 from rolk/285_shadow
Provide way of shadowing only some properties
2013-07-31 04:05:13 -07:00
Roland Kaufmann
764c3c8e60 Make sure that version info is updated before building code
Otherwise, the library may be declared "done" before the version number
process have had any change to touch files it depends upon. This ensures
that the version number is correct before we start building the library.
2013-07-31 12:58:12 +02:00
Roland Kaufmann
155bb2fc9c Include version information in the library
This version information can be queried programmatically by using the
expored opm_core_version symbol.
2013-07-31 12:22:18 +02:00
Roland Kaufmann
928a67b77f Write version information into header file
Akin to config.h, we write project-version.h whenever the VCS sha hash
of the project changes. This file can then be included to embed this
into the project. Since this changes more frequently, we choose another
file than config.h. Care is also taken to not rewrite the header if the
information doesn't change, but the project is rebuilt.
2013-07-31 12:04:07 +02:00
Roland Kaufmann
f3693e2282 Read the label from project info 2013-07-31 11:50:19 +02:00
Roland Kaufmann
663c6240a8 Add a label field to the project information
The difference between the version number (1.0) and the label (2013.03)
is: The version is time-independent but shows the level of compatibility,
see e.g. <http://www.semver.org>, whereas the label is a marketing tool
which describes the project progress.
2013-07-31 11:45:56 +02:00
Roland Kaufmann
2183a243cb Strings must contain ONLY numbers to be integers
The old pattern matched if there was an integer (digit) in the string;
it would have to be all non-digits to be quoted.
2013-07-31 11:08:57 +02:00
Roland Kaufmann
6757860aac Make sure CMake is re-run if dune.module changes
Version number in this module is included in the name of the library;
if we make changes to dune.module, it should do a complete reconfigure.
2013-07-31 11:05:53 +02:00
Bård Skaflestad
d3021429a5 Merge remote-tracking branch 'upstream/master' 2013-07-30 22:28:49 +02:00
Bård Skaflestad
2dac509c97 Merge pull request #289 from andlaus/make-gcc44-mandatory
Make gcc44 mandatory
2013-07-30 13:25:35 -07:00
Bård Skaflestad
822c6f8736 Merge remote-tracking branch 'upstream/master' 2013-07-30 21:22:12 +02:00
Bård Skaflestad
6d3cbafa54 Merge pull request #288 from andlaus/fix-clang-warnings
fix a few CLang warnings
2013-07-30 12:18:54 -07:00
Andreas Lauser
b52b2cd555 fix new 'unused variable' warnings on GCC
that one was due to the fact that the constructor arguments were no
longer used to initialize (unused) private member variables. These
warnings did not appear in CLang for some reason. Again, thanks to
Bård Skaflestad for the review.
2013-07-30 19:07:46 +02:00