Fix Build (Finally)
All checks were successful
minecraft-pi-reborn/pipeline/head This commit looks good

This commit is contained in:
TheBrokenRail 2021-10-22 17:28:26 -04:00
parent 28424aa86a
commit f2bd893241
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,6 @@ add_compile_options(-w)
## LibPNG ## LibPNG
# Download # Download
set(SKIP_INSTALL_ALL TRUE) # Skip Default LibPNG Installation
FetchContent_Declare( FetchContent_Declare(
libpng libpng
GIT_REPOSITORY "https://github.com/glennrp/libpng.git" GIT_REPOSITORY "https://github.com/glennrp/libpng.git"
@ -23,6 +22,8 @@ set(CMAKE_POLICY_DEFAULT_CMP0054 NEW) # Re-Enable New Behavior
set_target_properties(png12 PROPERTIES LINK_FLAGS "-Wl,--version-script='${CMAKE_CURRENT_SOURCE_DIR}/libpng.vers'") # Use Symbol Versioning set_target_properties(png12 PROPERTIES LINK_FLAGS "-Wl,--version-script='${CMAKE_CURRENT_SOURCE_DIR}/libpng.vers'") # Use Symbol Versioning
set_target_properties(png12 PROPERTIES DEBUG_POSTFIX "") # Fix LibPNG Suffix In Debug Mode set_target_properties(png12 PROPERTIES DEBUG_POSTFIX "") # Fix LibPNG Suffix In Debug Mode
# Ensure Build
set_target_properties(png12 PROPERTIES EXCLUDE_FROM_ALL FALSE)
# Install # Install
install(TARGETS png12 DESTINATION "${MCPI_LIB_DIR}") install(TARGETS png12 DESTINATION "${MCPI_LIB_DIR}")

View File

@ -8,7 +8,6 @@ add_compile_options(-w)
## zlib ## zlib
# Download # Download
set(SKIP_INSTALL_ALL TRUE) # Skip Default ZLib Installation
FetchContent_Declare( FetchContent_Declare(
zlib zlib
GIT_REPOSITORY "https://github.com/madler/zlib.git" GIT_REPOSITORY "https://github.com/madler/zlib.git"
@ -18,6 +17,8 @@ FetchContent_Populate(zlib)
include_directories("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}") # Fix ZLib Build include_directories("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}") # Fix ZLib Build
add_subdirectory("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" EXCLUDE_FROM_ALL) add_subdirectory("${zlib_SOURCE_DIR}" "${zlib_BINARY_DIR}" EXCLUDE_FROM_ALL)
# Ensure Build
set_target_properties(zlib PROPERTIES EXCLUDE_FROM_ALL FALSE)
# Install # Install
install(TARGETS zlib DESTINATION "${MCPI_LIB_DIR}") install(TARGETS zlib DESTINATION "${MCPI_LIB_DIR}")