try fix mac

This commit is contained in:
Green Sky 2024-01-07 17:57:04 +01:00
parent 5802e7ddab
commit a488a255ff
No known key found for this signature in database

View File

@ -14,6 +14,7 @@ if (NOT TARGET imgui)
FetchContent_Declare(imgui FetchContent_Declare(imgui
GIT_REPOSITORY https://github.com/ocornut/imgui.git GIT_REPOSITORY https://github.com/ocornut/imgui.git
GIT_TAG d4ddc46e7 GIT_TAG d4ddc46e7
EXCLUDE_FROM_ALL
) )
# imgui does not provide a cmake # imgui does not provide a cmake
@ -48,6 +49,7 @@ if (NOT TARGET imgui)
${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp ${imgui_SOURCE_DIR}/misc/cpp/imgui_stdlib.cpp
) )
target_include_directories(imgui PUBLIC ${imgui_SOURCE_DIR}) target_include_directories(imgui PUBLIC ${imgui_SOURCE_DIR})
target_compile_features(imgui PUBLIC cxx_std_11)
endif() endif()
#FetchContent_MakeAvailable(imgui) #FetchContent_MakeAvailable(imgui)
endif() endif()