Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Commit 14ca6a4

Browse files
committed
bring back YOMM2Config.cmake - another attempt
1 parent 3741e84 commit 14ca6a4

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,9 +125,14 @@ install(EXPORT YOMM2Targets
125125
NAMESPACE YOMM2::
126126
DESTINATION lib/cmake/YOMM2
127127
)
128+
# Configure package config (tells using code about dependencies)
129+
configure_package_config_file(
130+
cmake/YOMM2Config.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/YOMM2Config.cmake
131+
INSTALL_DESTINATION lib/cmake/YOMM2
132+
)
128133
# Copy config files to install directory
129134
install(FILES
130-
"YOMM2Config.cmake"
135+
"${CMAKE_CURRENT_BINARY_DIR}/YOMM2Config.cmake"
131136
"${CMAKE_CURRENT_BINARY_DIR}/YOMM2ConfigVersion.cmake"
132137
DESTINATION lib/cmake/YOMM2
133138
)

0 commit comments

Comments
 (0)