Skip to content

Commit bd15599

Browse files
authored
Merge pull request #305 from jcarpent/devel
Sync submodule Cmake
2 parents 810b5d8 + 075bad2 commit bd15599

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

CMakeLists.txt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,11 +217,10 @@ modernize_target_link_libraries(
217217
SCOPE
218218
PUBLIC
219219
TARGETS
220-
Python3::NumPy
220+
Python${PYTHON_VERSION_MAJOR}::NumPy
221221
INCLUDE_DIRS
222-
${NUMPY_INCLUDE_DIRS})
223-
target_include_directories(${PROJECT_NAME} SYSTEM
224-
PRIVATE ${PYTHON_INCLUDE_DIRS})
222+
${NUMPY_INCLUDE_DIRS}
223+
${PYTHON_INCLUDE_DIR})
225224

226225
if(SUFFIX_SO_VERSION)
227226
set_target_properties(${PROJECT_NAME} PROPERTIES SOVERSION ${PROJECT_VERSION})

0 commit comments

Comments
 (0)