File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,6 @@ cmake_minimum_required(VERSION 3.13)
2
2
cmake_policy (SET CMP0074 NEW )
3
3
set (CMAKE_VERBOSE_MAKEFILE ON )
4
4
5
- if (DEFINED Python_EXECUTABLE )
6
- set (PYTHON_EXECUTABLE ${Python_EXECUTABLE} )
7
- endif ()
8
-
9
5
if (DEFINED ENV{VCPKG_ROOT_DIR} AND NOT DEFINED VCPKG_ROOT_DIR )
10
6
set (VCPKG_ROOT_DIR "$ENV{VCPKG_ROOT_DIR} "
11
7
CACHE STRING "Vcpkg root directory" )
@@ -36,6 +32,7 @@ endif ()
36
32
# casadi seems to compile without the newer versions of std::string
37
33
add_compile_definitions (_GLIBCXX_USE_CXX11_ABI=0 )
38
34
35
+ set (PYBIND11_FINDPYTHON ON )
39
36
find_package (pybind11 CONFIG REQUIRED )
40
37
41
38
# Check Casadi build flag
@@ -106,7 +103,7 @@ if (CASADI_DIR)
106
103
file (TO_CMAKE_PATH ${CASADI_DIR} CASADI_DIR )
107
104
message ("Found Python casadi path: ${CASADI_DIR} " )
108
105
else ()
109
- message (FATAL_ERROR "Did not find casadi path} " )
106
+ message (FATAL_ERROR "Did not find casadi path" )
110
107
endif ()
111
108
112
109
if (${USE_PYTHON_CASADI} )
You can’t perform that action at this time.
0 commit comments