Skip to content

Commit

Permalink
Don't remove generated files on clean
Browse files Browse the repository at this point in the history
When generated files are removed on clean, the build will
fail because log4cxx.h is not found, and cmake must be run
again.  The files still get regenrated anyway.
  • Loading branch information
rm5248 committed Sep 20, 2020
1 parent e161df4 commit aa1820c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/main/include/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ add_custom_target(configure_log4cxx
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/log4cxx/log4cxx.hw
${CMAKE_CURRENT_SOURCE_DIR}/log4cxx/private/log4cxx_private.hw
BYPRODUCTS
${CMAKE_CURRENT_BINARY_DIR}/log4cxx/log4cxx.h
${CMAKE_CURRENT_BINARY_DIR}/log4cxx/private/log4cxx_private.h
)
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/log4cxx/version_info.h.in
${CMAKE_CURRENT_BINARY_DIR}/log4cxx/version_info.h
Expand Down Expand Up @@ -112,8 +109,5 @@ add_custom_target(configure_log4cxx
DEPENDS
${CMAKE_CURRENT_SOURCE_DIR}/log4cxx/log4cxx.h.in
${CMAKE_CURRENT_SOURCE_DIR}/log4cxx/private/log4cxx_private.h.in
BYPRODUCTS
${CMAKE_CURRENT_BINARY_DIR}/log4cxx/log4cxx.h
${CMAKE_CURRENT_BINARY_DIR}/log4cxx/private/log4cxx_private.h
)
endif()

0 comments on commit aa1820c

Please sign in to comment.