Skip to content

Commit

Permalink
Fixings
Browse files Browse the repository at this point in the history
  • Loading branch information
BlingRob committed Sep 13, 2023
1 parent b09a647 commit abfe65f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ endif()

include(cmake/DownloadAndBuild.cmake)

add_custom_target(${PROJECT_NAME}
add_custom_target(${PROJECT_NAME} ALL
WORKING_DIRECTORY
${CMAKE_CURRENT_BINARY_DIR}
COMMENT
Expand Down
11 changes: 5 additions & 6 deletions cmake/LinuxInstall.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ set(VULKAN_SDK_LIBRARY_DIR ${CMAKE_INSTALL_PREFIX}/lib64 CACHE STRING "Vulkan li

add_custom_command(
TARGET ${PROJECT_NAME}
PRE_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/setx.sh VK_LAYER_PATH ${CMAKE_INSTALL_PREFIX}/share/vulkan/explicit_layer.d)
POST_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/setx.sh VK_LAYER_PATH ${CMAKE_INSTALL_PREFIX}/share/vulkan/explicit_layer.d
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/setx.sh VK_LOADER_DEBUG "all"
COMMENT "Set layer path and debug level"
VERBATIM)

add_custom_command(
TARGET ${PROJECT_NAME}
PRE_BUILD
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/scripts/setx.sh VK_LOADER_DEBUG "all")

list(APPEND Vulkan_Libs "${CMAKE_INSTALL_PREFIX}/lib64/libglslang.a")
list(APPEND Vulkan_Libs "${CMAKE_INSTALL_PREFIX}/lib64/libSPIRV.a")
Expand Down

0 comments on commit abfe65f

Please sign in to comment.