File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,8 @@ option(ENABLE_CODE_ANALYSIS "Use Static Code Analysis on build" OFF)
3131
3232option (ENABLE_CODE_COVERAGE "Build with code-coverage" OFF )
3333
34+ option (ENABLE_CODE_PROFILING "Build for profiling" OFF )
35+
3436option (BUILD_FUZZING "Build for fuzz testing" OFF )
3537
3638set (CMAKE_CXX_STANDARD 17)
@@ -286,6 +288,13 @@ elseif(CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
286288 endforeach ()
287289 endif ()
288290
291+ if (ENABLE_CODE_PROFILING)
292+ message (STATUS "Building with /PROFILE" )
293+ foreach (t IN LISTS TOOL_EXES ITEMS ${PROJECT_NAME} )
294+ target_link_options (${t} PRIVATE /profile)
295+ endforeach ()
296+ endif ()
297+
289298 if (ENABLE_SPECTRE_MITIGATION
290299 AND (CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 19.13)
291300 AND (NOT WINDOWS_STORE))
You can’t perform that action at this time.
0 commit comments