blob: 482d889f62b6566bd01b4f2841c21c38182610cf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- CMakeLists.txt.orig 2024-04-03 02:23:20 UTC
+++ CMakeLists.txt
@@ -2,6 +2,8 @@ project(nlopt-python)
project(nlopt-python)
+set(FREEBSD_PYTHON_VER $ENV{FREEBSD_PYTHON_VER})
+
set (CMAKE_INSTALL_PREFIX ${CMAKE_CURRENT_BINARY_DIR})
set (CMAKE_INSTALL_LIBDIR ${CMAKE_INSTALL_PREFIX}/nlopt)
set (INSTALL_PYTHON_DIR ${CMAKE_INSTALL_PREFIX})
@@ -9,7 +11,7 @@ if (NOT WIN32)
option (BUILD_SHARED_LIBS OFF)
if (NOT WIN32)
- find_package (PythonInterp)
+ find_package (PythonInterp ${FREEBSD_PYTHON_VER} EXACT)
execute_process(
COMMAND
|