From f30441fd5d5efa10695fad877430a6a81e349647 Mon Sep 17 00:00:00 2001 From: Victor Bombi Date: Mon, 25 May 2020 16:54:55 +0200 Subject: [PATCH] CMakeLists.txt modification for MSVC thanks to @Sewer56 --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f5a9c75..4233be1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,9 +22,9 @@ endif (IMGUI_STATIC) target_compile_definitions(cimgui PUBLIC IMGUI_DISABLE_OBSOLETE_FUNCTIONS=1) if (WIN32) - target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API="extern \"C\" __declspec\(dllexport\)") + target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t__declspec\(dllexport\)) else (WIN32) - target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API="extern \"C\" ") + target_compile_definitions(cimgui PUBLIC IMGUI_IMPL_API=extern\t\"C\"\t) endif (WIN32) target_include_directories(cimgui PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})