From 8634d71da61694cee112b1436415afb03361bfe2 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Sun, 25 Aug 2024 12:04:30 +0800 Subject: [PATCH] ... --- CMakeLists.txt | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7f74012c..0c17d50f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,12 +12,9 @@ check_ipo_supported(RESULT result) if(result AND NOT CMAKE_SYSTEM_NAME STREQUAL "iOS") set(CMAKE_INTERPROCEDURAL_OPTIMIZATION TRUE) else() - message(WARNING ">> IPO disabled. You will get very poor performance!!") - message(WARNING ">> IPO disabled. You will get very poor performance!!") - message(WARNING ">> IPO disabled. You will get very poor performance!!") + message(WARNING ">> IPO disabled. You will not get the best performance.") endif() - if(MSVC) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} /utf-8 /jumptablerdata /GS-") add_compile_options(/wd4267 /wd4244) @@ -47,11 +44,6 @@ if(PK_ENABLE_OS) add_definitions(-DPK_ENABLE_OS=1) endif() -option(PK_ENABLE_PROFILER "" OFF) -if(PK_ENABLE_PROFILER) - add_definitions(-DPK_ENABLE_PROFILER=1) -endif() - # PK_IS_MAIN determines whether the project is being used from root # or if it is added as a dependency (through add_subdirectory for example). if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")