Fix Build Better

This commit is contained in:
TheBrokenRail 2021-10-22 18:36:09 -04:00
parent f2bd893241
commit 28a6d59c2d
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ set_target_properties(png12 PROPERTIES LINK_FLAGS "-Wl,--version-script='${CMAKE
set_target_properties(png12 PROPERTIES DEBUG_POSTFIX "") # Fix LibPNG Suffix In Debug Mode
# Ensure Build
set_target_properties(png12 PROPERTIES EXCLUDE_FROM_ALL FALSE)
add_custom_target(png12-build ALL DEPENDS png12)
# Install
install(TARGETS png12 DESTINATION "${MCPI_LIB_DIR}")

View File

@ -18,7 +18,7 @@ include_directories("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}") # Fix ZLib Build
add_subdirectory("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" EXCLUDE_FROM_ALL)
# Ensure Build
set_target_properties(zlib PROPERTIES EXCLUDE_FROM_ALL FALSE)
add_custom_target(zlib-build ALL DEPENDS zlib)
# Install
install(TARGETS zlib DESTINATION "${MCPI_LIB_DIR}")