File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,9 +56,11 @@ add_library(sphericart_jax_cpu SHARED ${CMAKE_CURRENT_LIST_DIR}/src/sphericart_j
5656target_link_libraries (sphericart_jax_cpu PRIVATE sphericart )
5757target_compile_features (sphericart_jax_cpu PRIVATE cxx_std_17 )
5858target_include_directories (sphericart_jax_cpu PRIVATE
59- ${XLA_INCLUDE_DIR}
6059 ${CMAKE_CURRENT_SOURCE_DIR} /include
6160)
61+ target_include_directories (sphericart_jax_cpu SYSTEM PRIVATE
62+ ${XLA_INCLUDE_DIR}
63+ )
6264# On Windows, MSVC only exports explicitly marked symbols; this auto-exports all
6365# external-linkage symbols (equivalent to the default behaviour on Linux/macOS).
6466set_target_properties (sphericart_jax_cpu PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
@@ -74,9 +76,11 @@ if(CMAKE_CUDA_COMPILER AND SPHERICART_ENABLE_CUDA)
7476 target_link_libraries (sphericart_jax_cuda PRIVATE sphericart gpulite )
7577 target_compile_features (sphericart_jax_cuda PRIVATE cxx_std_17 )
7678 target_include_directories (sphericart_jax_cuda PRIVATE
77- ${XLA_INCLUDE_DIR}
7879 ${CMAKE_CURRENT_SOURCE_DIR} /include
7980 )
81+ target_include_directories (sphericart_jax_cuda SYSTEM PRIVATE
82+ ${XLA_INCLUDE_DIR}
83+ )
8084 set_target_properties (sphericart_jax_cuda PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON )
8185 install (TARGETS sphericart_jax_cuda
8286 LIBRARY DESTINATION "lib"
You can’t perform that action at this time.
0 commit comments