Skip to content

Commit b60f191

Browse files
committed
Link against Release version of std library
1 parent 1bf11fb commit b60f191

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

dev-docs/source/MVPDesign.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ files can be used to build the widget as follows:
227227
mkdir buildmvp
228228
cd buildmvp
229229
cmake ..
230-
cmake --buildmvp .
230+
cmake --build .
231231
232232
The example widget can then be opened with:
233233

tools/MVP/templates/CMakeLists.txt.in

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ add_executable(launch
1616
${MOC_FILES}
1717
)
1818

19+
# Link with the Release version of the standard library. This is required because
20+
# Conda does not provide packages with Debug symbols.
21+
if(WIN32)
22+
set_property(TARGET launch PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreadedDLL")
23+
endif()
24+
1925
target_link_libraries(launch
2026
Qt5::Core
2127
Qt5::Gui

tools/MVP/templates/main.cpp.in

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,9 @@
1111
#include <QApplication>
1212

1313

14-
int main(int argc, char *argv[]){
14+
int main(int argc, char *argv[]) {
1515
QApplication app(argc, argv);
1616

17-
//{
18-
// QString test = "3";
19-
// std::string blah = test.toStdString();
20-
//}
2117
auto model = std::make_unique<Model>();
2218
auto view = new View();
2319
auto presenter = std::make_unique<Presenter>(std::move(model), view);

0 commit comments

Comments
 (0)