Commit 02c63645 authored by Jan Möbius's avatar Jan Möbius

Exclude PDB files from release windows builds.

parent 85178551
......@@ -359,7 +359,13 @@ elseif(WIN32)
file (GLOB qtplugin_dirs RELATIVE "${QT_PLUGINS_DIR}" "${QT_PLUGINS_DIR}/*" )
file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/Build/QtPlugins" )
foreach (qtplugin ${qtplugin_dirs})
file(COPY "${QT_PLUGINS_DIR}/${qtplugin}" DESTINATION "${CMAKE_BINARY_DIR}/Build/QtPlugins/")
# Exclude PDB files if we build release mode
if ( CMAKE_BUILD_TYPE MATCHES "Debug" )
file(COPY "${QT_PLUGINS_DIR}/${qtplugin}" DESTINATION "${CMAKE_BINARY_DIR}/Build/QtPlugins/")
else()
file(COPY "${QT_PLUGINS_DIR}/${qtplugin}" DESTINATION "${CMAKE_BINARY_DIR}/Build/QtPlugins/" PATTERN .pdb EXCLUDE )
endif()
endforeach ()
endif( APPLE )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment