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

View File

@@ -1,3 +1,6 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/CentralServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/CentralServer.profdata)
endif()
set(SHARED_SOURCES
shared/AuctionTransferClient.cpp

View File

@@ -1,3 +1,6 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/ChatServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/ChatServer.profdata)
endif()
set(SHARED_SOURCES
shared/CentralServerConnection.cpp

View File

@@ -1,6 +1,6 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/CommoditiesServer.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/CommoditiesServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/CommoditiesServer.profdata)
endif()
set(SHARED_SOURCES

View File

@@ -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

View File

@@ -1,3 +1,6 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/LogServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/LogServer.profdata)
endif()
set(SHARED_SOURCES
shared/ConfigLogServer.cpp

View File

@@ -1,5 +1,5 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/LoginServer.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/LoginServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/LoginServer.profdata)
endif()
set(SHARED_SOURCES

View File

@@ -1,5 +1,5 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/PlanetServer.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/PlanetServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/PlanetServer.profdata)
endif()
set(SHARED_SOURCES

View File

@@ -1,5 +1,5 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/TaskManager.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/TaskManager.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/TaskManager.profdata)
endif()
set(SHARED_SOURCES

View File

@@ -1,5 +1,5 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/SwgDatabaseServer.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/SwgDatabaseServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/SwgDatabaseServer.profdata)
endif()
set(SHARED_SOURCES

View File

@@ -1,5 +1,5 @@
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/SwgGameServer.profdata)
if (${CMAKE_BUILD_TYPE} STREQUAL "MINSIZEREL" AND EXISTS "${PROJECT_SOURCE_DIR}/src/linux/SwgGameServer.profdata")
add_compile_options(-fprofile-instr-use=${PROJECT_SOURCE_DIR}/src/linux/SwgGameServer.profdata)
endif()
set(SHARED_SOURCES