1
0
mirror of synced 2024-11-12 02:00:52 +01:00

Statically link all libs again to make it work on all Windows systems

This commit is contained in:
WerWolv 2020-11-13 00:43:04 +01:00
parent 761522a540
commit 867b87415b

View File

@ -8,7 +8,7 @@ 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")
SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -DIMGUI_IMPL_OPENGL_LOADER_GLAD -static-libstdc++ -static-libgcc -static")
add_executable(ImHex
source/main.cpp
@ -40,7 +40,7 @@ add_executable(ImHex
)
if (WIN32)
target_link_libraries(ImHex libglfw3.a libgcc.a libstdc++.a libmagic.a libgnurx.a libtre.a libintl.a libiconv.a shlwapi.lib libcrypto.a)
target_link_libraries(ImHex libglfw3.a libgcc.a libstdc++.a libmagic.a libgnurx.a libtre.a libintl.a libiconv.a shlwapi.lib libcrypto.a libwinpthread.a)
endif (WIN32)
if (UNIX)