8000 Merge pull request #190 from SylvainCorlay/fixup-target-exports · robertodr/xtensor-python@bdbda6b · GitHub
[go: up one dir, main page]

Skip to content

Commit bdbda6b

Browse files
Merge pull request xtensor-stack#190 from SylvainCorlay/fixup-target-exports
Fixup build interfaces
2 parents 88d10fb + d8cca1e commit bdbda6b

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 5 deletions
7371
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,11 @@ set(XTENSOR_PYTHON_HEADERS
5454
)
5555

5656
add_library(xtensor-python INTERFACE)
57-
target_include_directories(xtensor-python INTERFACE $<BUILD_INTERFACE:${XTENSOR_PYTHON_INCLUDE_DIR}>
58-
$<BUILD_INTERFACE:${pybind11_INCLUDE_DIRS}>
59-
$<BUILD_INTERFACE:${NUMPY_INCLUDE_DIRS}>
60-
$<INSTALL_INTERFACE:include>)
57+
target_include_directories(xtensor-python INTERFACE
58+
"$<BUILD_INTERFACE:${XTENSOR_PYTHON_INCLUDE_DIR};${pybind11_INCLUDE_DIRS};${NUMPY_INCLUDE_DIRS}>"
59+
$<INSTALL_INTERFACE:include>)
6160
target_link_libraries(xtensor-python INTERFACE xtensor)
6261
get_target_property(inc_dir xtensor-python INTERFACE_INCLUDE_DIRECTORIES)
63-
message(STATUS "${inc_dir}")
6462

6563
OPTION(BUILD_TESTS "xtensor test suite" OFF)
6664
OPTION(DOWNLOAD_GTEST "build gtest from downloaded sources" OFF)

0 commit comments

Comments
 (0)
0