Skip to content

Commit

Permalink
Use ${CMAKE_INSTALL_LIBDIR} for CONFIG_INSTALL_DESTINATION
Browse files Browse the repository at this point in the history
  • Loading branch information
opoplawski committed Jan 25, 2025
1 parent 39a2cb6 commit 67bd88b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ if(BUILD_LIB)
message(STATUS "Adding wgrib2 library build...")
### Package config
include(CMakePackageConfigHelpers)
set(CONFIG_INSTALL_DESTINATION lib/cmake/${PROJECT_NAME})
set(CONFIG_INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})

# No need for config file if library isn't built
export(EXPORT wgrib2_exports
Expand Down

0 comments on commit 67bd88b

Please sign in to comment.