Skip to content

Commit

Permalink
Don't remove the scripts if we're doing an in-src build
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed May 8, 2022
1 parent 4674d37 commit 45f5dfb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/other/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,11 @@ DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/libpng16.pc")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/genchk.cmake")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/genout.cmake")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/gensrc.cmake")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/checksym.awk")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/dfn.awk")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/options.awk")
if (NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/checksym.awk")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/dfn.awk")
DISTCLEAN("${CMAKE_CURRENT_BINARY_DIR}/libpng/scripts/options.awk")
endif (NOT "${CMAKE_CURRENT_BINARY_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}")
DISTCLEAN(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libpng.pc)
DISTCLEAN(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libpng-config)
DISTCLEAN(${CMAKE_LIBRARY_OUTPUT_DIRECTORY}/libpng${CMAKE_SHARED_LIBRARY_SUFFIX})
Expand Down

0 comments on commit 45f5dfb

Please sign in to comment.