From 1604066b6e2afcde5950db20e492c4915d69d3cf Mon Sep 17 00:00:00 2001 From: scawful Date: Wed, 7 Aug 2024 16:11:14 -0400 Subject: [PATCH] update python headers based on platform --- src/py/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/py/CMakeLists.txt b/src/py/CMakeLists.txt index f6cf1a73..9be12965 100644 --- a/src/py/CMakeLists.txt +++ b/src/py/CMakeLists.txt @@ -10,7 +10,11 @@ add_library( py/yaze_py.cc ) -set(PYTHON_HEADERS /Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/Headers) +if (APPLE) + 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( yaze_py PUBLIC