cmake: fix Xcode generator build
This commit is contained in:
@@ -291,6 +291,10 @@ function(upx_compile_source_debug_with_O2)
|
|||||||
endif()
|
endif()
|
||||||
set(flags "-O2")
|
set(flags "-O2")
|
||||||
endif()
|
endif()
|
||||||
|
if(CMAKE_GENERATOR MATCHES "Xcode") # multi-config
|
||||||
|
# NOTE: Xcode does not support per-config per-source COMPILE_FLAGS (as of CMake 3.27.7)
|
||||||
|
return()
|
||||||
|
endif()
|
||||||
foreach(t ${ARGV})
|
foreach(t ${ARGV})
|
||||||
if(MSVC_FRONTEND)
|
if(MSVC_FRONTEND)
|
||||||
# MSVC uses some Debug compilation options like -RTC1 that are incompatible with -O2
|
# MSVC uses some Debug compilation options like -RTC1 that are incompatible with -O2
|
||||||
|
|||||||
Reference in New Issue
Block a user