Skip to content

Commit

Permalink
Expressed core lib dependency on generate_headers target.
Browse files Browse the repository at this point in the history
  • Loading branch information
pbtoast committed May 25, 2018
1 parent 95d6b95 commit efb88fe
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ add_polymec_library(polymec_core polymec.c arch.c allocators.c logging.c timer.c
lua_array.c lua_ndarray.c lua_driver.c)
set_target_properties(polymec_core PROPERTIES LINKER_LANGUAGE C)

# polymec.c depends on the creation of polymec_version.h.
add_dependencies(polymec_core update_version_h)
# polymec.c depends on the creation of polymec_version.h and on the creation
# of the high-level headers.
add_dependencies(polymec_core update_version_h generate_headers)

set(POLYMEC_LIBRARIES polymec_core;${POLYMEC_LIBRARIES} PARENT_SCOPE)
set(POLYMEC_LIBRARIES polymec_core;${POLYMEC_LIBRARIES})
Expand Down

0 comments on commit efb88fe

Please sign in to comment.