Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#193: Update Python Dependency to Python3 in CMakeLists.txt for EnvelopeProblemSOS #336

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions examples/EnvelopeProblemSOS/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ if (USE_OpenMP)
find_package(OpenMP REQUIRED)
endif (USE_OpenMP)

find_package(Python2 COMPONENTS Development NumPy)
find_package(Python3 COMPONENTS Development NumPy REQUIRED)

add_executable(EnvelopeProblem ${TARGETS})

if (NOT BOOST_DIR)
Expand Down Expand Up @@ -82,5 +83,6 @@ else ()
if (USE_OpenMP)
target_link_directories(EnvelopeProblem PRIVATE ${OPENMP_LIBRARIES})
endif ()
target_link_libraries(EnvelopeProblem Python2::Python Python2::NumPy)
target_link_libraries(EnvelopeProblem Python3::Python Python3::NumPy)

endif ()