Skip to content
Snippets Groups Projects
Commit 46926f5b authored by Antoine Lorence's avatar Antoine Lorence
Browse files

[CMake/Win32] Fix dependency to libstdc++ shared library

parent 96cb724e
No related branches found
No related tags found
No related merge requests found
......@@ -202,6 +202,12 @@ qt5_add_translation(QM_FILES ${TS_FILES})
# -2- Update translations files with changes from c++ sources
# qt5_create_translation(QM_FILES ${eiimage_SOURCES} ${TS_FILES})
# Apply only on MinGW / Cygwin under Windows
if(WIN32 AND CMAKE_COMPILER_IS_GNUCXX)
# Don't require libstdc++**.dll when running the program
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static-libstdc++")
endif()
add_executable(eiimage ${eiimage_SOURCES} ${WRAPPED_UIS} ${UIS} ${TS_FILES} ${RCC_FILES})
target_link_libraries(eiimage
core
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment