Skip to content

Commit

Permalink
redisversioning: make ninja happy with generated version header file
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavk committed Feb 12, 2019
1 parent 10ddf11 commit 24af014
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -216,20 +216,18 @@ else()
VERBATIM)
endif()


include_directories(${CMAKE_BINARY_DIR}/include/)

set(SOUPER_KVSTORE_FILES
lib/KVStore/KVStore.cpp
include/souper/KVStore/KVStore.h
)

# All those components requiring version information need to mention {VERSION_TMP} as their
# dependent.
add_custom_command(OUTPUT ${VERSION_FILE} DEPENDS ${VERSION_TMP})
add_custom_target(genver_h DEPENDS ${VERSION_FILE})
include_directories(${CMAKE_BINARY_DIR}/include/)

add_library(souperKVStore STATIC
${SOUPER_KVSTORE_FILES}
${VERSION_TMP}
)
${SOUPER_KVSTORE_FILES})
add_dependencies(souperKVStore genver_h)

set(SOUPER_INFER_FILES
lib/Infer/InstSynthesis.cpp
Expand Down

0 comments on commit 24af014

Please sign in to comment.