Skip to content

Commit

Permalink
update pypi action
Browse files Browse the repository at this point in the history
  • Loading branch information
kungjim committed Sep 17, 2023
1 parent dfa67bc commit b858e73
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@ include_directories(/usr/local/include)
include_directories(/usr/include)

# Find and link to Python
set(PYTHON ${PYTHON_EXECUTABLE})
execute_process(
COMMAND
${PYTHON_EXECUTABLE} "-c" "print('Hello, world!')"
RESULT_VARIABLE _status
OUTPUT_VARIABLE _hello_world
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
message(STATUS "RESULT_VARIABLE is: ${_status}")
message(STATUS "OUTPUT_VARIABLE is: ${_hello_world}")

find_package(Python COMPONENTS Interpreter Development REQUIRED)

include_directories(${PYTHON_INCLUDE_DIRS})
Expand Down

0 comments on commit b858e73

Please sign in to comment.