update python headers based on platform
This commit is contained in:
@@ -10,7 +10,11 @@ add_library(
|
|||||||
py/yaze_py.cc
|
py/yaze_py.cc
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (APPLE)
|
||||||
set(PYTHON_HEADERS /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Headers)
|
set(PYTHON_HEADERS /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Headers)
|
||||||
|
elseif(LINUX)
|
||||||
|
set(PYTHON_HEADERS /usr/include/python3.8)
|
||||||
|
endif()
|
||||||
|
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
yaze_py PUBLIC
|
yaze_py PUBLIC
|
||||||
|
|||||||
Reference in New Issue
Block a user