mirror of
https://github.com/pocketpy/pocketpy
synced 2025-11-05 03:00:17 +00:00
...
This commit is contained in:
parent
7fe16eec98
commit
8634d71da6
@ -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}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user