Skip to content

Commit

Permalink
trying to fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
wkjarosz committed Apr 3, 2024
1 parent fa97415 commit b4b4391
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ project(
DESCRIPTION
"A simple research-oriented image viewer with an emphasis on examining and comparing high-dynamic range (HDR) images."
VERSION ${VERSION}
LANGUAGES C CXX OBJC
LANGUAGES C CXX
)

if(CMAKE_SIZEOF_VOID_P EQUAL 8)
Expand Down Expand Up @@ -134,7 +134,10 @@ if(APPLE AND NOT EMSCRIPTEN)

set(HELLOIMGUI_USE_GLFW3 ON)

# on macOS, download a branch of glfw that allows dragging files onto app icon
# on macOS, download a branch of glfw that allows dragging files onto app icon.

# need to enable OBJC language for the custom glfw branch
enable_language(OBJC)
set(HELLOIMGUI_DOWNLOAD_GLFW_IF_NEEDED OFF)
CPMAddPackage(
NAME glfw
Expand Down

0 comments on commit b4b4391

Please sign in to comment.