Skip to content

Commit

Permalink
Add json-c build directory to includes
Browse files Browse the repository at this point in the history
Signed-off-by: Jacki <[email protected]>
  • Loading branch information
TheJackiMonster committed Oct 13, 2024
1 parent 2494960 commit 1e775d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/shader_compiler/config/JSON-C.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use_git_submodule("${vkcv_shader_compiler_lib_path}/json-c" json_c_status)
if (${json_c_status})
add_subdirectory(${vkcv_shader_compiler_lib}/json-c)

set(JSON_C_INCLUDE_DIR ${vkcv_shader_compiler_lib_path})
set(JSON_C_INCLUDE_DIRS ${vkcv_shader_compiler_lib_path} ${CMAKE_CURRENT_BINARY_DIR}/${vkcv_shader_compiler_lib})

list(APPEND vkcv_shader_compiler_libraries json-c)
list(APPEND vkcv_shader_compiler_includes ${vkcv_shader_compiler_lib})
Expand Down
2 changes: 1 addition & 1 deletion modules/shader_compiler/config/Shady.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use_git_submodule("${vkcv_shader_compiler_lib_path}/shady" shady_status)
if (${shady_status})
set(EXTERNAL_JSON_C ON CACHE INTERNAL "")
set(EXTERNAL_SPIRV_HEADERS ON CACHE INTERNAL "")
set(EXTERNAL_JSON_C_INCLUDE ${JSON_C_INCLUDE_DIR} CACHE INTERNAL "")
set(EXTERNAL_JSON_C_INCLUDE ${JSON_C_INCLUDE_DIRS} CACHE INTERNAL "")

set(BUILD_RUNTIME OFF CACHE INTERNAL "")
set(BUILD_SAMPLES OFF CACHE INTERNAL "")
Expand Down

0 comments on commit 1e775d0

Please sign in to comment.