Skip to content

Commit

Permalink
hacked ImGuiColorTextEdit to work on most compilers - waiting for thi…
Browse files Browse the repository at this point in the history
  • Loading branch information
onqtam committed Dec 26, 2017
1 parent 7fcf76a commit 3f72e21
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CMakeLists.txt
Expand Up @@ -72,6 +72,13 @@ add_library(ImGuiColorTextEdit STATIC src/third_party/ImGuiColorTextEdit/TextEdi
target_link_libraries(ImGuiColorTextEdit PRIVATE imgui)
target_include_directories(ImGuiColorTextEdit INTERFACE src/third_party/ImGuiColorTextEdit)

# hack until this gets merged: https://github.com/BalazsJako/ImGuiColorTextEdit/pull/7
if(MSVC)
target_compile_options(ImGuiColorTextEdit PRIVATE /FI"${CMAKE_CURRENT_SOURCE_DIR}/src/third_party/hack_for_imgui_color_text_edit.h")
else()
target_compile_options(ImGuiColorTextEdit PRIVATE -include ${CMAKE_CURRENT_SOURCE_DIR}/src/third_party/hack_for_imgui_color_text_edit.h)
endif()

# glfw
set(GLFW_BUILD_DOCS OFF CACHE BOOL "" FORCE)
set(GLFW_BUILD_TESTS OFF CACHE BOOL "" FORCE)
Expand Down
1 change: 1 addition & 0 deletions src/third_party/hack_for_imgui_color_text_edit.h
@@ -0,0 +1 @@
#include <cmath>

0 comments on commit 3f72e21

Please sign in to comment.