I like to enable optimization for a single file in debug build. The code in the file performance_critical.cpp
is very slow in debug mode and I hope to improve the debug performance. My plan is to switch on optimization for only one specific file.
I already tried:
set_source_files_properties(performance_critical.cpp PROPERTIES COMPILE_FLAGS /O2 COMPILE_FLAGS /Ob2)
This seems to not do the job. Thanks for your help.