diff --git a/src/coreclr/pgosupport.cmake b/src/coreclr/pgosupport.cmake index d9d24adf0c207..8e2b8a0a0aa38 100644 --- a/src/coreclr/pgosupport.cmake +++ b/src/coreclr/pgosupport.cmake @@ -18,8 +18,8 @@ endif(NOT WIN32) function(add_pgo TargetName) if(CLR_CMAKE_PGO_INSTRUMENT) if(CLR_CMAKE_HOST_WIN32) - target_link_options(${TargetName} PRIVATE $<$>,$>:/LTCG>) - target_link_options(${TargetName} PRIVATE $<$:/GENPROFILE>) + target_link_options(${TargetName} $<$>,$>:/LTCG>) + target_link_options(${TargetName} $<$:/GENPROFILE>) else(CLR_CMAKE_HOST_WIN32) if(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO) target_compile_options(${TargetName} PRIVATE -flto -fprofile-instr-generate)