Skip to content

Commit 40ce97b

Browse files
authored
Fix json include path (#588)
Change `ppc_link_json` macro to use `target_include_directories` for installed json headers
1 parent 167fe11 commit 40ce97b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmake/json.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,6 @@ function(ppc_link_json exec_func_lib)
2727
PUBLIC ${CMAKE_SOURCE_DIR}/3rdparty/json/include)
2828

2929
add_dependencies(${exec_func_lib} ppc_json)
30-
target_link_directories(${exec_func_lib} INTERFACE
31-
"${CMAKE_BINARY_DIR}/ppc_json/install/include")
30+
target_include_directories(
31+
${exec_func_lib} INTERFACE "${CMAKE_BINARY_DIR}/ppc_json/install/include")
3232
endfunction()

0 commit comments

Comments
 (0)