pcsx2/cmake/FindSparseHash.cmake

19 lines
604 B
CMake
Raw Normal View History

# Try to find SparseHash
# Once done, this will define
#
# SPARSEHASH_FOUND - system has SparseHash
# SPARSEHASH_INCLUDE_DIR - the SparseHash include directories
if(SPARSEHASH_INCLUDE_DIR)
set(SPARSEHASH_FIND_QUIETLY TRUE)
endif(SPARSEHASH_INCLUDE_DIR)
find_path(SPARSEHASH_INCLUDE_DIR google/sparsehash/sparsehashtable.h)
# handle the QUIETLY and REQUIRED arguments and set SPARSEHASH_FOUND to TRUE if
# all listed variables are TRUE
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(SparseHash DEFAULT_MSG SPARSEHASH_INCLUDE_DIR)
mark_as_advanced(SPARSEHASH_INCLUDE_DIR)