Feature/fix install cmake
Merge request reports
Activity
Why do you think that a lib of bash functions or dune.module is architecture dependent?
Edit: I get it. You want to be backwards compatible with autotools on broken SUSE systems that use lib as libdir. Still I would prefer to adapt Makefile.am for this.
Edited by Markus Blatt73 73 add_custom_target(doxygen_${ProjectName} 74 74 DEPENDS html) 75 75 add_dependencies(doc doxygen_${ProjectName}) 76 endif(DOXYGEN_FOUND) Coming to think of it again, the real reason to use a path relative to CMAKE_INSTALL_BINDIR is:
The problem was that user/sysadmin might overwrite CMAKE_INSTALL_LIBDIR and/or CMAKE_INSTALL_BINDIR. There is no easy for dunecontrol to guess which value CMAKE_INSTALL_LIBDIR was set to. But as dunecontrol gets installed into CMAKE_INSTALL_BINDIR it can assume that ${CMAKE_INSTALL_BINDIR}/../lib is the correct place of the lib.
Note that for autotools we still have the same problem, but I was not willing to invest time there.
Edited by Markus BlattThe same holds for dune.module.
Even in the current situation I am sure that I missed some scenarios. I guess the only way to be safe is to export the DUNE_INSTALL_NONOBJECTLIBDIR variable and possibly others with the package configuration file. Then dunecontrol can query the correct path from it using cmake. Might make dunecontrol a little less complicated...
mentioned in commit fa6bc4af