Skip to content

Commit

Permalink
fmt-lib giving issues on macos, so switching to header-only
Browse files Browse the repository at this point in the history
  • Loading branch information
wkjarosz committed Dec 28, 2023
1 parent 3951ac9 commit cf53e3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -340,13 +340,15 @@ hello_imgui_add_app(
)

set_target_properties(SamplinSafari PROPERTIES OUTPUT_NAME ${output_name} CXX_STANDARD 17)
target_link_libraries(SamplinSafari PRIVATE samplerlib linalg fmt::fmt portable-file-dialogs emscripten-browser-file)
if(EMSCRIPTEN)
target_link_libraries(SamplinSafari PRIVATE samplerlib linalg fmt::fmt emscripten-browser-file)
target_link_options(
SamplinSafari PRIVATE -sEXPORTED_RUNTIME_METHODS=[ccall] -sEXPORTED_FUNCTIONS=[_main,_malloc,_free]
-sNO_DISABLE_EXCEPTION_CATCHING
)
hello_imgui_set_emscripten_target_initial_memory_megabytes(SamplinSafari 120)
else()
target_link_libraries(SamplinSafari PRIVATE samplerlib linalg fmt::fmt-header-only portable-file-dialogs)
endif()

if(UNIX AND NOT ${U_CMAKE_BUILD_TYPE} MATCHES DEBUG)
Expand Down

0 comments on commit cf53e3c

Please sign in to comment.