Skip to content

Commit

Permalink
Merge pull request #1052 from leonvictor/dev
Browse files Browse the repository at this point in the history
 CMake: Fix target includes pointing to the wrong directory
  • Loading branch information
Cyan4973 committed Feb 4, 2022
2 parents 1da033e + a0d6d09 commit e9c29be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ set(LZ4_LIBRARIES_BUILT)
if(BUILD_SHARED_LIBS)
add_library(lz4_shared SHARED ${LZ4_SOURCES})
target_include_directories(lz4_shared
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
PUBLIC $<BUILD_INTERFACE:${LZ4_LIB_SOURCE_DIR}>
INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
set_target_properties(lz4_shared PROPERTIES
OUTPUT_NAME lz4
Expand All @@ -123,7 +123,7 @@ if(BUILD_STATIC_LIBS)
endif()
add_library(lz4_static STATIC ${LZ4_SOURCES})
target_include_directories(lz4_static
PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
PUBLIC $<BUILD_INTERFACE:${LZ4_LIB_SOURCE_DIR}>
INTERFACE $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>)
set_target_properties(lz4_static PROPERTIES
OUTPUT_NAME ${STATIC_LIB_NAME}
Expand Down

0 comments on commit e9c29be

Please sign in to comment.