Skip to content

Commit 6143d2b

Browse files
committed
Not entirely Sure why but VS studio debug needs this to run
1 parent 27ee11b commit 6143d2b

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

qtfred/CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,12 @@ set_target_properties(qtfred PROPERTIES
2323
AUTORCC TRUE
2424
AUTOUIC FALSE)
2525
set_target_properties(qtfred PROPERTIES OUTPUT_NAME "qtfred_${FSO_BINARY_SUFFIX}")
26-
26+
get_target_property(QT_PLUGINS_DIR Qt6::Core QT_PLUGINS_DIR)
27+
if(MSVC AND QT_PLUGINS_DIR)
28+
set_property(TARGET ${PROJECT_NAME} PROPERTY
29+
VS_DEBUGGER_ENVIRONMENT "QT_QPA_PLATFORM_PLUGIN_PATH=${QT_PLUGINS_DIR}"
30+
)
31+
endif()
2732
target_compile_definitions(qtfred PRIVATE "$<$<CXX_COMPILER_ID:MSVC>:PDB_DEBUGGING=1>")
2833

2934
# Undefine emit since it conflicts with our code

0 commit comments

Comments
 (0)