Skip to content

Commit

Permalink
cmake: fix building with BUILD_LIBSYSTEMD and ninja generator (#138)
Browse files Browse the repository at this point in the history
The ninja generator requires the BUILD_BYPRODUCTS specifier to work out the dependencies.
  • Loading branch information
awdAvenger committed Mar 12, 2021
1 parent 0090ca9 commit 3f74512
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/LibsystemdExternalProject.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ ExternalProject_Add(LibsystemdBuildProject
COMMAND ${NINJA} -C <BINARY_DIR> libsystemd.a
BUILD_ALWAYS 0
INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/src/systemd <INSTALL_DIR>/include/systemd
LOG_DOWNLOAD 1 LOG_UPDATE 1 LOG_CONFIGURE 1 LOG_BUILD 1)
LOG_DOWNLOAD 1 LOG_UPDATE 1 LOG_CONFIGURE 1 LOG_BUILD 1
BUILD_BYPRODUCTS <BINARY_DIR>/libsystemd.a)

ExternalProject_Get_property(LibsystemdBuildProject SOURCE_DIR)
ExternalProject_Get_property(LibsystemdBuildProject BINARY_DIR)
Expand Down

0 comments on commit 3f74512

Please sign in to comment.