Skip to content

Commit ef9236a

Browse files
committed
(cmake) fix python vars
1 parent b47133f commit ef9236a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ file(GLOB_RECURSE python_srcs ${PROJECT_SOURCE_DIR}/python/*.cpp)
88
add_library(pycaffe SHARED ${python_srcs})
99
caffe_default_properties(pycaffe)
1010
set_target_properties(pycaffe PROPERTIES PREFIX "" OUTPUT_NAME "_caffe")
11-
target_include_directories(pycaffe PUBLIC ${PYTHON_INCLUDE_DIRS} ${NUMPY_INCLUDE_DIR})
12-
target_link_libraries(pycaffe PUBLIC ${Caffe_LINK} ${PYTHON_LIBRARIES})
11+
target_include_directories(pycaffe PUBLIC ${Python_INCLUDE_DIRS} ${Python_NumPy_INCLUDE_DIRS})
12+
target_link_libraries(pycaffe PUBLIC ${Caffe_LINK} ${Python_LIBRARIES})
1313

1414
if(UNIX OR APPLE)
1515
set(__linkname "${PROJECT_SOURCE_DIR}/python/caffe/_caffe.so")

0 commit comments

Comments
 (0)