Skip to content

Commit 5ae6339

Browse files
committed
hic: Fix export of hic-targets with ECBUILD_2_COMPAT=ON (#353)
1 parent f50e3ed commit 5ae6339

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

hic/CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@ ecbuild_add_resources(
7474
LICENSE
7575
)
7676

77+
if (ECBUILD_2_COMPAT)
78+
# Manually add hic and hicsparse to the list hic_ALL_LIBS to get exported.
79+
# Only when ECBUILD_2_COMPAT=ON, INTERFACE libraries like hic,hicsparse
80+
# are not added to the list of libraries to be exported within ecbuild_add_library.
81+
set( hic_ALL_LIBS hic hicsparse )
82+
endif()
83+
7784
ecbuild_install_project( NAME hic )
7885
ecbuild_print_summary()
7986

0 commit comments

Comments
 (0)