only try to use profiles if the file exists

This commit is contained in:
DarthArgus
2017-01-13 11:12:14 -06:00
parent cf8416ff95
commit d95c5875b9
10 changed files with 23 additions and 14 deletions
@@ -1,5 +1,5 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/ConnectionServer.profdata)
endif()
set(SHARED_SOURCES