From ddb9f82824adbd4163b2cd3adfe9b4d84c06426c Mon Sep 17 00:00:00 2001 From: Jeremy Hayes Date: Tue, 12 Jan 2016 09:30:00 -0700 Subject: loader: update linux version to 1. --- demos/CMakeLists.txt | 8 ++------ loader/CMakeLists.txt | 6 +++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/demos/CMakeLists.txt b/demos/CMakeLists.txt index a4bbc84e..0b6d23cc 100644 --- a/demos/CMakeLists.txt +++ b/demos/CMakeLists.txt @@ -10,11 +10,7 @@ file(COPY ${TEXTURES} DESTINATION ${CMAKE_BINARY_DIR}/demos) set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES") set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DVK_PROTOTYPES") -if(WIN32) - set (LIBRARIES "vulkan-${MAJOR}") -else () - set (LIBRARIES "vulkan") -endif() +set (LIBRARIES "vulkan-${MAJOR}") if(WIN32) add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/demos/tri-vert.spv @@ -67,7 +63,7 @@ if(NOT WIN32) "${PROJECT_SOURCE_DIR}/icd/common" ) - link_libraries(${XCB_LIBRARIES} vulkan m) + link_libraries(${XCB_LIBRARIES} vulkan-${MAJOR} m) endif() if(WIN32) include_directories ( diff --git a/loader/CMakeLists.txt b/loader/CMakeLists.txt index 85d635eb..cecf4804 100644 --- a/loader/CMakeLists.txt +++ b/loader/CMakeLists.txt @@ -44,7 +44,7 @@ endif() if (NOT WIN32) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DVK_PROTOTYPES -Wpointer-arith") - add_library(vulkan SHARED ${LOADER_SRCS}) - set_target_properties(vulkan PROPERTIES SOVERSION 0) - target_link_libraries(vulkan -ldl -lpthread -lm) + add_library(vulkan-${MAJOR} SHARED ${LOADER_SRCS}) + set_target_properties(vulkan-${MAJOR} PROPERTIES SOVERSION 0) + target_link_libraries(vulkan-${MAJOR} -ldl -lpthread -lm) endif() -- cgit v1.2.3