Skip to content

Commit

Permalink
cmake : add option to enable/disable install of imgui headers
Browse files Browse the repository at this point in the history
  • Loading branch information
ggerganov committed Apr 8, 2021
1 parent e600ffc commit 418552c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ option(IMTUI_SUPPORT_CURL "imtui: support for libcurl" ${IMTUI_SUPPOR

option(IMTUI_BUILD_EXAMPLES "imtui: build examples" ${IMTUI_STANDALONE})

option(IMTUI_INSTALL_IMGUI_HEADERS "imtui: install Dear ImGui's header files" ${IMTUI_STANDALONE})

# sanitizers

if (IMTUI_SANITIZE_THREAD)
Expand Down
2 changes: 1 addition & 1 deletion third-party/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ if (MINGW)
set_target_properties(imgui-for-imtui PROPERTIES COMPILE_FLAGS -fno-threadsafe-statics)
endif()

if (IMTUI_STANDALONE AND NOT EMSCRIPTEN)
if (IMTUI_INSTALL_IMGUI_HEADERS AND NOT EMSCRIPTEN)
install(
FILES
${CMAKE_CURRENT_SOURCE_DIR}/imgui/imgui/imgui.h
Expand Down

0 comments on commit 418552c

Please sign in to comment.