1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-11 00:04:24 +00:00

Switched from setting CXX_STANDARD global to target property.

This commit is contained in:
pumpkinpal 2020-05-15 11:43:21 +10:00 committed by ocornut
parent b5f0e9b075
commit 37f5526bd1

View file

@ -17,8 +17,6 @@ option (IMGUI_IMPL_DX10 "Build the DirectX 10 implementation (only if supported)
option (IMGUI_IMPL_DX11 "Build the DirectX 11 implementation (only if supported)" ${WIN32})
option (IMGUI_IMPL_DX12 "Build the DirectX 12 implementation (only if supported)" ${WIN32})
set (CMAKE_CXX_STANDARD 11)
add_library (imgui STATIC
imgui.cpp
imgui_draw.cpp
@ -28,6 +26,8 @@ add_library (imgui STATIC
target_include_directories (imgui PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")
set_target_properties(imgui PROPERTIES CXX_STANDARD 11)
if (IMGUI_EXAMPLES)
# Sets up polyfill libraries for Windows examples (e.g. GLFW)
include (examples/libs/glfw.cmake)