Skip to content

Commit ac791f4

Browse files
committed
Test different targets
1 parent 090f0f6 commit ac791f4

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

cmake/external_dependencies.cmake

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,22 @@ find_package_or_fetch(
8686
)
8787

8888
if(NOT TARGET lz4::lz4)
89-
add_library(lz4::lz4 ALIAS lz4)
89+
if(TARGET LZ4::lz4)
90+
message(STATUS "📦 Found LZ4::lz4")
91+
add_library(lz4::lz4 ALIAS LZ4::lz4)
92+
elseif(TARGET LZ4::LZ4)
93+
message(STATUS "📦 Found LZ4::LZ4")
94+
add_library(lz4::lz4 ALIAS LZ4::LZ4)
95+
elseif(TARGET lz4_static)
96+
message(STATUS "📦 Found lz4_static")
97+
add_library(lz4::lz4 ALIAS lz4_static)
98+
elseif(TARGET lz4_shared)
99+
message(STATUS "📦 Found lz4_shared")
100+
add_library(lz4::lz4 ALIAS lz4_shared)
101+
else()
102+
message(STATUS "📦 NOTHING Found")
103+
add_library(lz4::lz4 ALIAS lz4)
104+
endif()
90105
endif()
91106

92107
if(SPARROW_IPC_BUILD_TESTS)

0 commit comments

Comments
 (0)