Skip to content

Commit

Permalink
CMake: in cg_py_library add GENERATED_SRCS to OUTPUTS
Browse files Browse the repository at this point in the history
  • Loading branch information
sogartar committed May 6, 2022
1 parent 9f5fd38 commit c25d3ad
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions build_tools/cmake/cg_py_library.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ function(cg_py_library)
list(APPEND _BIN_PATHS "${_SRC_BIN_PATH}")
endforeach()

list(APPEND _BIN_PATHS ${_RULE_GENERATED_SRCS})
set(_DEPS ${_RULE_DEPS} ${_BIN_PATHS})
add_custom_target(${_NAME} ALL DEPENDS ${_DEPS})

Expand Down
2 changes: 0 additions & 2 deletions compiler_gym/util/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ cg_py_library(
"thread_pool.py"
"timer.py"
"truncate.py"
GENERATED_SRCS
"$<TARGET_PROPERTY:compiler_gym__util__make_version,LOCATION>"
DEPS
make_version
compiler_gym::errors::errors
Expand Down

0 comments on commit c25d3ad

Please sign in to comment.