Only statically link on Windows
This commit is contained in:
parent
0b8b887978
commit
bbfb0556a6
2
.gitignore
vendored
2
.gitignore
vendored
@ -4,5 +4,7 @@ cmake-build-debug/
|
||||
cmake-build-release/
|
||||
|
||||
build-linux/
|
||||
build/
|
||||
|
||||
*.mgc
|
||||
imgui.ini
|
||||
|
@ -8,7 +8,11 @@ pkg_search_module(GLFW REQUIRED glfw3)
|
||||
find_package(OpenGL REQUIRED)
|
||||
|
||||
include_directories(include ${GLFW_INCLUDE_DIRS} libs/ImGui/include libs/glad/include)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD -static-libstdc++ -static-libgcc -static")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD")
|
||||
|
||||
if (WIN32)
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static-libstdc++ -static-libgcc -static")
|
||||
endif (WIN32)
|
||||
|
||||
add_executable(ImHex
|
||||
source/main.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user