Skip to content

Commit

Permalink
Prevent duplicating library files
Browse files Browse the repository at this point in the history
TODO: Optimize
  • Loading branch information
atirut-w committed Feb 1, 2024
1 parent d9356a8 commit 77bc885
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ add_custom_target(libsrc
COMMAND make -C ${PROJECT_SOURCE_DIR}/libsrc ${LIBSRC_OVERRIDES} -j${NPROC} && make -C ${PROJECT_SOURCE_DIR}/libsrc install
COMMAND make -C ${PROJECT_SOURCE_DIR}/libsrc/_DEVELOPMENT ${LIBSRC_OVERRIDES} -j${NPROC}
COMMAND make -C ${PROJECT_SOURCE_DIR}/include/_DEVELOPMENT ${LIBSRC_OVERRIDES} -j${NPROC}

# Cleanup
COMMAND find ${PROJECT_SOURCE_DIR}/libsrc -name "*.o" -type f -delete # Intermediate files, not needed
COMMAND find ${PROJECT_SOURCE_DIR}/libsrc -name "*.lib" -type f -delete # They'd already be moved to `lib/clibs`
)

# Install standard library
Expand Down

0 comments on commit 77bc885

Please sign in to comment.