Skip to content

Commit 433569a

Browse files
Bugfix: training header files were not installed with "make install". (#18004)
Fixes bug reported here: #17979 These files were not installed with "make install": executorch/extension/training/module/state_dict_util.h executorch/extension/training/module/training_module.h executorch/extension/training/optimizer/sgd.h This commit fixes this by adding the appropriate install commands. Adding @JacobSzwejbka to the conversation. Co-authored-by: Nikhil Viswanath Sivakumar <68182521+nil-is-all@users.noreply.github.com>
1 parent 07c5a54 commit 433569a

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

extension/training/CMakeLists.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,18 @@ install(
9494
INCLUDES
9595
DESTINATION ${_common_include_directories}
9696
)
97+
98+
# Headers
99+
install(
100+
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/module
101+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/executorch/extension/training
102+
FILES_MATCHING
103+
PATTERN "*.h"
104+
)
105+
106+
install(
107+
DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/optimizer
108+
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/executorch/extension/training
109+
FILES_MATCHING
110+
PATTERN "*.h"
111+
)

0 commit comments

Comments
 (0)