From ec2fc3b2e2f84c3b97415b9fd97bc4ab5670016b Mon Sep 17 00:00:00 2001 From: aks-lodhi07 <150542409+aks-lodhi07@users.noreply.github.com> Date: Tue, 12 Nov 2024 01:35:50 +0530 Subject: [PATCH] #193 issue update textual.py --- examples/EnvelopeProblemSOS/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/EnvelopeProblemSOS/CMakeLists.txt b/examples/EnvelopeProblemSOS/CMakeLists.txt index 6d4e2a2a4..07a1fcf9e 100644 --- a/examples/EnvelopeProblemSOS/CMakeLists.txt +++ b/examples/EnvelopeProblemSOS/CMakeLists.txt @@ -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) @@ -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 ()