message(FATAL_ERROR"This module can only be used if you are using the 3DS toolchain file. Please erase this build directory or create another one, and then use -DCMAKE_TOOLCHAIN_FILE=DevkitArm3DS.cmake when calling cmake for the 1st time. For more information, see the Readme.md for more information.")
endif()
if(BZIP2_INCLUDE_DIR)
# Already in cache, be silent
set(BZIP2_FIND_QUIETLYTRUE)
endif(BZIP2_INCLUDE_DIR)
include(LibFindMacros)
include(try_add_imported_target)
#libfind_package(BZIP2)
set(_BZIP2_SEARCHES)
# Search BZIP2_ROOT first if it is set.
if(BZIP2_ROOT)
set(_BZIP2_SEARCH_ROOT
PATHS${BZIP2_ROOT}
NO_DEFAULT_PATH
NO_CMAKE_FIND_ROOT_PATH)
list(APPEND_BZIP2_SEARCHES_BZIP2_SEARCH_ROOT)
endif()
# Search below ${DEVKITPRO}, ${DEVKITARM}, portlibs (if enabled) etc.