Closed edwardhartnett closed 1 year ago
@aerorahul and @AlexanderRichert-NOAA all discussion of bacio can happen in this issue...
We currently have the following in src/CMakeLists.txt:
install(
TARGETS ${LIB_TARGETS}
EXPORT ${PROJECT_NAME}Exports
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)
### Package config
include(CMakePackageConfigHelpers)
set(CONFIG_INSTALL_DESTINATION lib/cmake/${PROJECT_NAME})
So I think we want to change "lib/" to CMAKE_INSTALL_LIBDIR everywhere, including the package config.
I am also thinking we should be using CMAKE_INSTALL_BINDIR instead of bin.
I have made the above changes in the open PR #113
See https://github.com/NOAA-EMC/NCEPLIBS-w3emc/issues/146 for details.