Skip to content

Commit 2585233

Browse files
committed
template depth
1 parent 887dc08 commit 2585233

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cmake/python-highs.cmake

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ set(headers_python ${highs_headers_python}
1818

1919
# Find Python 3
2020
find_package(Python COMPONENTS Interpreter Development.Module REQUIRED)
21-
find_package(pybind11 CONFIG)
21+
find_package(pybind11 CONFIG REQUIRED)
2222

2323
python_add_library(_core MODULE highs/highs_bindings.cpp WITH_SOABI)
2424

@@ -55,6 +55,10 @@ if(MSVC)
5555
target_compile_options(_core PRIVATE "/bigobj")
5656
endif()
5757

58+
if (NOT MSVC)
59+
target_compile_options(_core PRIVATE "-ftemplate-depth=2048")
60+
endif()
61+
5862
# if(MSVC)
5963
# # Try to split large pdb files into objects.
6064
# # https://github.com/tensorflow/tensorflow/issues/31610

0 commit comments

Comments
 (0)