Skip to content

Commit

Permalink
Disallow building DLLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisThrasher committed Sep 3, 2023
1 parent bf4b183 commit 4f02e81
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,13 @@ endif()

find_package(OpenGL REQUIRED)

add_library(ImGui-SFML
# Require static libraries with MSVC
# ImGui technically provides DLL support but it's awkward to enable it
if(MSVC)
set(IMGUI_SFML_LIBRARY_TYPE STATIC)
endif()

add_library(ImGui-SFML ${IMGUI_SFML_LIBRARY_TYPE}
imgui-SFML.cpp
${IMGUI_SOURCES}
)
Expand Down

0 comments on commit 4f02e81

Please sign in to comment.