From 099177b0899156a4e8a352083a273805240c0ccd Mon Sep 17 00:00:00 2001 From: Aaron Robinson Date: Mon, 6 May 2019 10:19:49 -0700 Subject: Port all managed product binaries to use SDK style projects (#24285) Convert managed product binary to use SDK project system. - Uses Arcade for versions strings - Overrides Arcade defined output paths - should change in the future --- pgosupport.cmake | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'pgosupport.cmake') diff --git a/pgosupport.cmake b/pgosupport.cmake index bc331be6a5..dec050033e 100644 --- a/pgosupport.cmake +++ b/pgosupport.cmake @@ -28,7 +28,9 @@ function(add_pgo TargetName) endif(WIN32) elseif(CLR_CMAKE_PGO_OPTIMIZE) # If we don't have profile data availble, gracefully fall back to a non-PGO opt build - if(EXISTS ${ProfilePath}) + if(NOT EXISTS ${ProfilePath}) + message("PGO data file NOT found: ${ProfilePath}") + else(NOT EXISTS ${ProfilePath}) if(WIN32) set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELEASE " /LTCG /USEPROFILE:PGD=${ProfilePath}") set_property(TARGET ${TargetName} APPEND_STRING PROPERTY LINK_FLAGS_RELWITHDEBINFO " /LTCG /USEPROFILE:PGD=${ProfilePath}") @@ -46,6 +48,6 @@ function(add_pgo TargetName) endif(NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.6) endif(UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELEASE OR UPPERCASE_CMAKE_BUILD_TYPE STREQUAL RELWITHDEBINFO) endif(WIN32) - endif(EXISTS ${ProfilePath}) + endif(NOT EXISTS ${ProfilePath}) endif(CLR_CMAKE_PGO_INSTRUMENT) endfunction(add_pgo) -- cgit v1.2.3