Skip to content

Commit

Permalink
build: Add missing includes to libutil CMake target. (#4306)
Browse files Browse the repository at this point in the history
This is the continuation of [4305
](#4305
extra step to Makefile config target to force CMake to rescan).
The error occurs when configuring with `make
OpenImageIO_BUILD_MISSING_DEPS=all` option which fails the build as
`libuitil` does not have `./dep/dist/include` on the path.
The original solution was to rerun cmake and let it rescan paths. This
step was only required to run once - after the initial CMake
configuration step. This kind off worked but I'm still unsure why. So
instead of that we can just add the missing location to CMakeLists.

Signed-off-by: kuba <kuba456@gmail.com>
  • Loading branch information
kaarrot authored Jun 22, 2024
1 parent 9a020e8 commit 097e645
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libutil/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ function (setup_oiio_util_library targetname)

target_include_directories (${targetname}
PUBLIC
$<BUILD_INTERFACE:${OpenImageIO_LOCAL_DEPS_ROOT}/include>
$<INSTALL_INTERFACE:include>
PRIVATE
${ROBINMAP_INCLUDES}
Expand Down

0 comments on commit 097e645

Please sign in to comment.