From 37f5526bd1c590b0447d32d0b4879bf4f8846aef Mon Sep 17 00:00:00 2001 From: pumpkinpal Date: Fri, 15 May 2020 11:43:21 +1000 Subject: [PATCH] Switched from setting CXX_STANDARD global to target property. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index dc4546691..d2c8c5e76 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)