mirror of
https://github.com/RPCSX/rpcsx.git
synced 2024-10-07 00:33:30 +00:00
18 lines
531 B
CMake
18 lines
531 B
CMake
include(CheckCXXSymbolExists)
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
set(CMAKE_REQUIRED_LIBRARIES SPIRV-Tools-opt)
|
|
check_cxx_symbol_exists(spvtools::CreateBitCastCombinePass
|
|
"spirv-tools/optimizer.hpp"
|
|
HAVE_CREATE_BIT_CAST_COMBINE_PASS
|
|
)
|
|
|
|
if(HAVE_CREATE_BIT_CAST_COMBINE_PASS)
|
|
find_package(SPIRV-Tools-opt QUIET CONFIG)
|
|
find_package_handle_standard_args(SPIRV-Tools-opt CONFIG_MODE)
|
|
else()
|
|
find_package_handle_standard_args(SPIRV-Tools-opt
|
|
REQUIRED_VARS HAVE_CREATE_BIT_CAST_COMBINE_PASS
|
|
)
|
|
endif()
|