Closed mjs271 closed 3 years ago
Oh... does this mean that we use the default cmake install lib directory CMAKE_INSTALL_LIBDIR instead of TCHEM_INSTALL_LIB_PATH ?
@kyungjoo-kim Originally, the variable TCHEM_INSTALL_LIB_PATH
was being set to lib
. Now, it's an option with the default value of lib
. Then, for example in Haero, we set it at configure time to CMAKE_INSTALL_LIBDIR
to line up with the location of our other external libraries, since it was ending up in a different spot on linux builds (when CMAKE_INSTALL_LIBDIR
might be lib64
).
@mschmidt271 Yes, that is what I thought. So,
SET(TCHEM_INSTALL_LIB_PATH ${CMAKE_INSTALL_LIBDIR})
Would this make it more convenient ? I just wonder if this is more close to the standard cmake.
Yeah, that would put it in line with what we are going for. My goal on this PR was preserve the original behavior in case there was a reason it was set that way, but your suggestion seems like it'd be ideal.
The cmake variable
TCHEM_INSTALL_LIB_PATH
is currently hard-set to belib
, which causes some problems when we build in haero. Namely, it results in strife when building on linux systems that likeCMAKE_INSTALL_LIBDIR
to belib64
. Thus, this PR would allow the defaultlib
to be overridden at configure time.