Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
wkjarosz committed Apr 4, 2024
1 parent 4bc7301 commit 99d7412
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -134,9 +134,9 @@ 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 fork of glfw that allows dragging files onto app icon.

# need to enable OBJC language for the custom glfw branch
# need to enable OBJC language for the custom glfw fork
enable_language(OBJC)
set(HELLOIMGUI_DOWNLOAD_GLFW_IF_NEEDED OFF)
CPMAddPackage(
Expand All @@ -153,7 +153,7 @@ if(APPLE AND NOT EMSCRIPTEN)
)

if(glfw_ADDED)
message(STATUS "Using custom branch of glfw on macOS")
message(STATUS "Using custom fork of glfw on macOS")

mark_as_advanced(
GLFW_BUILD_DOCS
Expand Down Expand Up @@ -223,10 +223,6 @@ endforeach()

set(HELLOIMGUI_EMSCRIPTEN_PTHREAD ON)
set(HELLOIMGUI_EMSCRIPTEN_PTHREAD_ALLOW_MEMORY_GROWTH ON)
# on macOS, link statically against freetype
if(APPLE)
set(HELLOIMGUI_FREETYPE_STATIC ON)
endif()

CPMAddPackage(
NAME imgui_bundle
Expand Down

0 comments on commit 99d7412

Please sign in to comment.