mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 01:29:08 +08:00
14 lines
524 B
Plaintext
14 lines
524 B
Plaintext
option(SUFFIX_D "Add d Suffix to lib" ${SUFFIX_D})
|
|
if(NOT ${SUFFIX_D})
|
|
find_library(SPIRVTOOLSOPT spirv-tools-opt)
|
|
find_library(SPIRVTOOLS spirv-tools)
|
|
ELSE()
|
|
find_library(SPIRVTOOLSOPT spirv-tools-opt)
|
|
find_library(SPIRVTOOLS spirv-tools)
|
|
ENDIF()
|
|
|
|
add_library(SPIRV-Tools-opt STATIC IMPORTED GLOBAL)
|
|
set_property(TARGET SPIRV-Tools-opt PROPERTY IMPORTED_LOCATION "${SPIRVTOOLSOPT}")
|
|
|
|
add_library(SPIRV-Tools STATIC IMPORTED GLOBAL)
|
|
set_property(TARGET SPIRV-Tools PROPERTY IMPORTED_LOCATION "${SPIRVTOOLS}") |