Skip to content

Commit

Permalink
Add _INCLUDE_DIRS to find OpenJPEG
Browse files Browse the repository at this point in the history
For some reason, I'm getting compiler errors without the _INCLUDE_DIRS. It should be fine for now and hopefully another pull request can better address this issue.
  • Loading branch information
dukesook committed Jun 30, 2023
1 parent 2af795d commit d956ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libheif/plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ macro(plugin_compilation name varName optionName defineName)
message("Compiling '" ${name} "' as built-in backend")
target_sources(heif PRIVATE ${${optionName}_sources})
target_compile_definitions(heif PRIVATE HAVE_${defineName}=1)
target_include_directories(heif PRIVATE ${${varName}_INCLUDE_DIR})
target_include_directories(heif PRIVATE ${${varName}_INCLUDE_DIR} ${${varName}_INCLUDE_DIRS})
target_link_libraries(heif PRIVATE ${${varName}_LIBRARIES} ${${varName}_LINKDIR})
endif ()

Expand Down

0 comments on commit d956ccc

Please sign in to comment.