diff --git a/src/cmake/modules/FindLibRaw.cmake b/src/cmake/modules/FindLibRaw.cmake index 2a48a33d29..6d3186e5ca 100644 --- a/src/cmake/modules/FindLibRaw.cmake +++ b/src/cmake/modules/FindLibRaw.cmake @@ -96,7 +96,7 @@ if (LINKSTATIC) set (LibRaw_r_LIBRARIES ${LibRaw_r_LIBRARIES} ${LCMS2_LIBRARIES}) endif() if (MSVC) - set (LibRaw_r_DEFINITIONS ${LibRaw_r_DEFINITIONS} LIBRAW_NODLL) - set (LibRaw_DEFINITIONS ${LibRaw_DEFINITIONS} LIBRAW_NODLL) + set (LibRaw_r_DEFINITIONS ${LibRaw_r_DEFINITIONS} -D LIBRAW_NODLL) + set (LibRaw_DEFINITIONS ${LibRaw_DEFINITIONS} -D LIBRAW_NODLL) endif() endif ()