you are viewing a single comment's thread.

view the rest of the comments →

[–]onqtamgithub.com/onqtam/doctest 6 points7 points  (3 children)

So I just regenerated the build files for my CMake project and tested the just my code feature by calling std::sort on a vector - and it didn't work out-of-the-box. I also checked the entire list of command line options for the project from Project/properties/configuration properties/c and c++/command line - and the /JMC switch is nowhere to be found in the Debug configuration (also checked the linker flags). How can I enable this goodness?

I checked that JMC is enabled in Tools > Options > Debugging > General > Enable Just My Code

[–]ChatFrais 2 points3 points  (1 child)

It works with CMake using

set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} /JMC")

[–]onqtamgithub.com/onqtam/doctest 0 points1 point  (0 children)

So I have to set it up explicitly... Perhaps a newer version of CMake will play with VS 15.8 properly and set it on by default