qmd-progress icon indicating copy to clipboard operation
qmd-progress copied to clipboard

pkgconfig and compiler wrappers

Open cnegre opened this issue 6 years ago • 9 comments

When using pkgconfig to configure progress with bml there is a "clash" with the compiler wrappers used in the machine environment.

It seems that pkgconfig is not able to identify the wrapper that was used to compile, or, at least cmake complains about the compilers been broken when pkgconfig path is set.

A way to make it work is to comment out line 75 in CMakeList.txt (#include(FindPkgConfig)) and line 77 (#pkg_check_modules(BML bml REQUIRED)) and add the following extra fc and link flags to the configuration script:

export EXTRA_FCFLAGS=${DEXTRA_FCFLAGS:="-I$BML_LIB/../include"} export EXTRA_LINK_FLAGS=${DEXTRA_LINK_FLAGS:="-L$BML_LIB/ -lbml_fortran -lbml"}

Is there any more elegant way of avoiding this problem?

cnegre avatar Apr 26 '18 19:04 cnegre