Skip to content

Commit 9fb8e1f

Browse files
committed
build: Fix libraw definitions (again)
Fixes 4586 Replaces 4587 Signed-off-by: Larry Gritz <[email protected]>
1 parent e964a6a commit 9fb8e1f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

src/cmake/modules/FindLibRaw.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ if (LINKSTATIC)
9696
set (LibRaw_r_LIBRARIES ${LibRaw_r_LIBRARIES} ${LCMS2_LIBRARIES})
9797
endif()
9898
if (MSVC)
99-
set (LibRaw_r_DEFINITIONS ${LibRaw_r_DEFINITIONS} LIBRAW_NODLL)
100-
set (LibRaw_DEFINITIONS ${LibRaw_DEFINITIONS} LIBRAW_NODLL)
99+
set (LibRaw_r_DEFINITIONS ${LibRaw_r_DEFINITIONS} -D LIBRAW_NODLL)
100+
set (LibRaw_DEFINITIONS ${LibRaw_DEFINITIONS} -D LIBRAW_NODLL)
101101
endif()
102102
endif ()

src/raw.imageio/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@ if (LIBRAW_FOUND)
66
add_oiio_plugin (rawinput.cpp
77
INCLUDE_DIRS ${LibRaw_INCLUDE_DIR}
88
LINK_LIBRARIES ${LibRaw_r_LIBRARIES}
9-
COMPILE_OPTIONS ${LibRaw_r_DEFINITIONS}
10-
DEFINITIONS "USE_LIBRAW=1")
9+
DEFINITIONS "USE_LIBRAW=1" ${LibRaw_r_DEFINITIONS})
1110
else ()
1211
message (WARNING "Raw plugin will not be built")
1312
endif ()

0 commit comments

Comments
 (0)