Hello;

after merging the opm-cmake Pull Requests I am now in the process of trying to 
simplify the build system in opm-cmake. Currently my focus is on removing the 
sibling-build features.

Much of the build system is permeated by the assumption that the different 
modules are in ${module} subdirectory, i.e. if we invoke cmake as:

                cmake -DOPM_ROOT=/path/opm

The build system will search for headers and libraries of opm-core in:

                header-search : /path/opm/opm-core/include/{...}
                library-search  : /path/opm/opm-core/lib64/{...}

Whereas when the opm modules are installed with 'make install' they will go to:

                header-install : ${CMAKE_INSTALL_PREFIX}/include/{...}
                library-install   : ${CMAKE_INSTALL_PREFIX}/lib64/{...}

I.e. the module subdirectory is absent. My suggestion plan is that:


1.       The implicit ${module} subdirectory is removed from the eventual 
search path - if you invoke cmake with -DOPM_ROOT= cmake will search for 
headers and libraries in ${OPM_ROOT}/include and ${OPM_ROOT}/lib64 respectively.

2.       If you want to employ a different version of one the modules you can 
invoke cmake as:

cmake -DOPM_ROOT=/default/root  
-DDUNE_CORNERPOINT_ROOT=/special/dune-cornerpoint

The use of module subdirectories is not strictly bound to sibling builds; but 
they certainly simplify sibling-build search semantics. Dune also seems to have 
these directories.

Any opinions on this? Are there some fundamental issues with the use of module 
subdirectories which I have overlooked?


Joakim

RDI project with IT elements -> Contact R&D 
Toolbox<https://statoil.service-now.com/selfservice/catalog_item_detail.do?sysparm_document_key=sc_cat_item,78bfbbce6fb455001f6446916e3ee453>



-------------------------------------------------------------------
The information contained in this message may be CONFIDENTIAL and is
intended for the addressee only. Any unauthorised use, dissemination of the
information or copying of this message is prohibited. If you are not the
addressee, please notify the sender immediately by return e-mail and delete
this message.
Thank you
_______________________________________________
Opm mailing list
[email protected]
http://www.opm-project.org/mailman/listinfo/opm

Reply via email to