cmake: add missing SPIRV-Tools-opt dependency
This commit is contained in:
parent
9aaba37665
commit
82e0d00b32
1 changed files with 5 additions and 2 deletions
|
|
@ -334,6 +334,10 @@ if(PROJECT_IS_TOP_LEVEL)
|
|||
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/glslang-config.cmake.in" [=[
|
||||
@PACKAGE_INIT@
|
||||
include(CMakeFindDependencyMacro)
|
||||
if(@ENABLE_OPT@)
|
||||
find_dependency(SPIRV-Tools-opt)
|
||||
endif()
|
||||
@INSTALL_CONFIG_UNIX@
|
||||
include("@PACKAGE_PATH_EXPORT_TARGETS@")
|
||||
]=])
|
||||
|
|
@ -341,9 +345,8 @@ if(PROJECT_IS_TOP_LEVEL)
|
|||
set(PATH_EXPORT_TARGETS "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}/glslang-targets.cmake")
|
||||
if(UNIX OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Fuchsia")
|
||||
set(INSTALL_CONFIG_UNIX [=[
|
||||
include(CMakeFindDependencyMacro)
|
||||
set(THREADS_PREFER_PTHREAD_FLAG ON)
|
||||
find_dependency(Threads REQUIRED)
|
||||
find_dependency(Threads)
|
||||
]=])
|
||||
endif()
|
||||
configure_package_config_file(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue