Skip to content

Commit b9795bc

Browse files
authored
Fix check for LZ4::LZ4 target (#364)
1 parent 49dd99a commit b9795bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmake/FindLZ4.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ find_package_handle_standard_args(LZ4 DEFAULT_MSG LZ4_LIBRARIES LZ4_INCLUDE_DIRS
1717

1818
mark_as_advanced(LZ4_LIBRARIES LZ4_INCLUDE_DIRS)
1919

20-
if(LZ4_FOUND AND NOT LZ4::LZ4)
20+
if(LZ4_FOUND AND NOT TARGET LZ4::LZ4)
2121
add_library(LZ4::LZ4 UNKNOWN IMPORTED)
2222
set_target_properties( LZ4::LZ4 PROPERTIES
2323
INTERFACE_INCLUDE_DIRECTORIES "${LZ4_INCLUDE_DIRS}"

0 commit comments

Comments
 (0)