Skip to content

Commit 10ff590

Browse files
committed
fixes to handling of NANOGUI_SKIP_STB_IMAGE_IMPLEMENTATION
1 parent 1a4d861 commit 10ff590

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -451,13 +451,13 @@ target_compile_definitions(nanogui
451451
-DNANOGUI_BUILD
452452
)
453453

454-
if (NOT NANOGUI_SKIP_STB_IMAGE_IMPLEMENTATION)
454+
if (NANOGUI_SKIP_STB_IMAGE_IMPLEMENTATION)
455455
# Frameworks that statically link to nanobind and which already include the
456456
# stb_image implementation bits can set this flag to avoid duplicate symbol
457457
# errors.
458458

459459
target_compile_definitions(nanogui
460-
PRIVATE -DNVG_STB_IMAGE_IMPLEMENTATION)
460+
PRIVATE -DNVG_NO_STB_IMPLEMENTATION)
461461
endif()
462462

463463
if (NANOGUI_SKIP_METAL_SHADER_PRECOMPILATION)

0 commit comments

Comments
 (0)