Skip to content

Commit

Permalink
Fixed cmakelists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
JohanMabille committed Nov 2, 2022
1 parent 34279b0 commit a24b15c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ set(XTENSOR_SIGNAL_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/include)
# ==========

set(XTENSOR_SIGNAL_CONFIG_FILE
"${XTENSOR_SIGNAL_INCLUDE_DIR}/xtensor-signal/xtensor_python_config.hpp")
file(STRINGS ${XTENSOR_SIGNAL_CONFIG_FILE} xtensor_python_version_defines
"${XTENSOR_SIGNAL_INCLUDE_DIR}/xtensor-signal/xtensor_signal.hpp")
file(STRINGS ${XTENSOR_SIGNAL_CONFIG_FILE} xtensor_signal_version_defines
REGEX "#define XTENSOR_SIGNAL_VERSION_(MAJOR|MINOR|PATCH)")
foreach(ver ${xtensor_python_version_defines})
foreach(ver ${xtensor_signal_version_defines})
if(ver MATCHES "#define XTENSOR_SIGNAL_VERSION_(MAJOR|MINOR|PATCH) +([^ ]+)$")
set(XTENSOR_SIGNAL_VERSION_${CMAKE_MATCH_1} "${CMAKE_MATCH_2}" CACHE INTERNAL "")
endif()
Expand Down Expand Up @@ -70,7 +70,7 @@ set(XTENSOR_SIGNAL_HEADERS
add_library(xtensor-signal INTERFACE)

target_include_directories(xtensor-signal INTERFACE
$<BUILD_INTERFACE:${XTENSOR_SIGNAL_INCLUDE_DIR>
$<BUILD_INTERFACE:${XTENSOR_SIGNAL_INCLUDE_DIR}>
$<INSTALL_INTERFACE:include>)

target_link_libraries(xtensor-signal INTERFACE xtensor xsimd)
Expand Down
2 changes: 1 addition & 1 deletion environment-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ dependencies:
- ninja
# Host dependencies
- xsimd
- xtensor=0.24.0
- xtensor=0.24.3
- doctest

0 comments on commit a24b15c

Please sign in to comment.