Skip to content

Commit

Permalink
Fix OSX build
Browse files Browse the repository at this point in the history
  • Loading branch information
eustas committed Dec 6, 2024
1 parent eddc52e commit 5126d62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/jpegli.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ target_compile_options(jpegli-static PUBLIC ${JPEGXL_COVERAGE_FLAGS})
set_property(TARGET jpegli-static PROPERTY POSITION_INDEPENDENT_CODE ON)
target_include_directories(jpegli-static PRIVATE
"$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/include>"
"${JXL_HWY_INCLUDE_DIRS}"
)
target_include_directories(jpegli-static PUBLIC
Expand Down
2 changes: 2 additions & 0 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ if(JPEGXL_ENABLE_TOOLS)
# Depends on parts of jxl_extras that are only built if libjpeg is found and
# jpegli is enabled.
add_executable(cjpegli cjpegli.cc)
target_link_libraries(cjpegli jpegli-static)
add_executable(djpegli djpegli.cc)
target_link_libraries(djpegli jpegli-static)
list(APPEND INTERNAL_TOOL_BINARIES cjpegli djpegli)
endif() # JPEGXL_ENABLE_TOOLS

Expand Down

0 comments on commit 5126d62

Please sign in to comment.