mirror of
https://github.com/ZDoom/zdoom-macos-deps.git
synced 2024-12-14 06:11:43 +00:00
27 lines
1,014 B
CMake
27 lines
1,014 B
CMake
|
include(Compiler/CMakeCommonCompilerMacros)
|
||
|
|
||
|
# Not aware of any verbose flag for ISPC
|
||
|
#set(CMAKE_ISPC_VERBOSE_FLAG )
|
||
|
|
||
|
set(CMAKE_DEPFILE_FLAGS_ISPC "-M -MT <DEP_TARGET> -MF <DEP_FILE>")
|
||
|
if((NOT DEFINED CMAKE_DEPENDS_USE_COMPILER OR CMAKE_DEPENDS_USE_COMPILER)
|
||
|
AND CMAKE_GENERATOR MATCHES "Makefiles|WMake")
|
||
|
# dependencies are computed by the compiler itself
|
||
|
set(CMAKE_ISPC_DEPFILE_FORMAT gcc)
|
||
|
set(CMAKE_ISPC_DEPENDS_USE_COMPILER TRUE)
|
||
|
endif()
|
||
|
|
||
|
string(APPEND CMAKE_ISPC_FLAGS_INIT " ")
|
||
|
string(APPEND CMAKE_ISPC_FLAGS_DEBUG_INIT "-O0 -g")
|
||
|
string(APPEND CMAKE_ISPC_FLAGS_RELEASE_INIT " -O3 -DNDEBUG")
|
||
|
string(APPEND CMAKE_ISPC_FLAGS_MINSIZEREL_INIT " -O1 -DNDEBUG")
|
||
|
string(APPEND CMAKE_ISPC_FLAGS_RELWITHDEBINFO_INIT " -O2 -g -DNDEBUG")
|
||
|
|
||
|
set(CMAKE_ISPC_COMPILE_OPTIONS_PIE --pic)
|
||
|
set(CMAKE_ISPC_COMPILE_OPTIONS_PIC --pic)
|
||
|
|
||
|
set(CMAKE_ISPC_RESPONSE_FILE_FLAG "@")
|
||
|
set(CMAKE_ISPC_USE_RESPONSE_FILE_FOR_INCLUDES 1)
|
||
|
set(CMAKE_ISPC_USE_RESPONSE_FILE_FOR_LIBRARIES 1)
|
||
|
set(CMAKE_ISPC_USE_RESPONSE_FILE_FOR_OBJECTS 1)
|