Skip to content

Commit

Permalink
Specify codegen install location in CMake variable (#607)
Browse files Browse the repository at this point in the history
Co-authored-by: Henry Schreiner <[email protected]>
Co-authored-by: Ian McInerney <[email protected]>
  • Loading branch information
3 people authored Mar 14, 2024
1 parent 1704870 commit 02a117c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -553,9 +553,10 @@ if(OSQP_BUILD_STATIC_LIB OR OSQP_BUILD_SHARED_LIB)
endif()

if(OSQP_CODEGEN)
set(OSQP_CODEGEN_INSTALL_DIR "${CMAKE_INSTALL_DATAROOTDIR}/osqp/codegen_files" CACHE PATH "Location of codegen install")
install(DIRECTORY
"${EMBEDDED_BUILD_ROOT_DIR}/"
DESTINATION "${CMAKE_INSTALL_DATAROOTDIR}/osqp/codegen_files")
DESTINATION "${OSQP_CODEGEN_INSTALL_DIR}" COMPONENT codegen)
endif()

if(NOT TARGET uninstall)
Expand Down

0 comments on commit 02a117c

Please sign in to comment.