Fix static libraries linking order (#3189)

Fix #1569
This commit is contained in:
Danilo Spinella 2020-02-20 16:54:54 +01:00 committed by GitHub
parent 79f8caf915
commit 03794b8f5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -300,7 +300,7 @@ if (NOT "${SPIRV_SKIP_TESTS}")
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR})
endif()
set(SPIRV_LIBRARIES "-lSPIRV-Tools -lSPIRV-Tools-link -lSPIRV-Tools-opt")
set(SPIRV_LIBRARIES "-lSPIRV-Tools-opt -lSPIRV-Tools -lSPIRV-Tools-link")
set(SPIRV_SHARED_LIBRARIES "-lSPIRV-Tools-shared")
# Build pkg-config file