Skip to content

Commit 7bc0553

Browse files
update CMakeLists to build from vendored TinyMPC submodule
1 parent 396aaa7 commit 7bc0553

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

CMakeLists.txt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,9 @@ find_package(pybind11 CONFIG REQUIRED)
1212

1313
message(STATUS "Fetching/configuring TinyMPC")
1414
list(APPEND CMAKE_MESSAGE_INDENT " ")
15-
FetchContent_Declare(
16-
tinympc
17-
GIT_REPOSITORY https://github.com/TinyMPC/TinyMPC.git
18-
GIT_TAG main
19-
)
15+
# --- TinyMPC -------------------------------------------------
16+
add_subdirectory(tinympc/TinyMPC tinympc_build)
2017
list(POP_BACK CMAKE_MESSAGE_INDENT)
21-
FetchContent_MakeAvailable(tinympc)
2218

2319
# configure_file(${CMAKE_CURRENT_SOURCE_DIR}/src/bindings.cpp.in
2420
# ${CMAKE_CURRENT_SOURCE_DIR}/src/bindings.cpp)

0 commit comments

Comments
 (0)