OPM/opm-parser — pull request #215 by akva2 (2014-05-19 11:46:06+00:00)
Title: fixed: linking due to several specializations being generated

due to the separate build steps for the library and the test binary, the current setup results in two copies of the specialization being generated, with the corresponding linker failure (below).

../../../../../lib/x86_64-linux-gnu/libParser.a(EclipseState.cpp.o): In function `Opm::GridProperty::loadFromDeckKeyword(std::shared_ptr)':
EclipseState.cpp:(.text+0x0): multiple definition of `Opm::GridProperty::loadFromDeckKeyword(std::shared_ptr)'
CMakeFiles/runEclipseStateTests.dir/EclipseStateTests.cpp.o:EclipseStateTests.cpp:(.text+0x220): first defined here
collect2: error: ld returned 1 exit status

i guess the msft linker have other rules here. this is perhaps not how you want it fixed, though it is a proper fix.