LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git] / ground / gcs / src / libs / eigen / cmake / FindGoogleHash.cmake
blobf6a81a02ce9dbac0710ef2b5e46eb8b9c5aa5999
2 if (GOOGLEHASH_INCLUDES AND GOOGLEHASH_LIBRARIES)
3   set(GOOGLEHASH_FIND_QUIETLY TRUE)
4 endif (GOOGLEHASH_INCLUDES AND GOOGLEHASH_LIBRARIES)
6 find_path(GOOGLEHASH_INCLUDES
7   NAMES
8   google/dense_hash_map
9   PATHS
10   ${INCLUDE_INSTALL_DIR}
13 if(GOOGLEHASH_INCLUDES)
14   # let's make sure it compiles with the current compiler
15   file(WRITE ${CMAKE_BINARY_DIR}/googlehash_test.cpp
16   "#include <google/sparse_hash_map>\n#include <google/dense_hash_map>\nint main(int argc, char** argv) { google::dense_hash_map<int,float> a; google::sparse_hash_map<int,float> b; return 0;}\n")
17   try_compile(GOOGLEHASH_COMPILE ${CMAKE_BINARY_DIR} ${CMAKE_BINARY_DIR}/googlehash_test.cpp OUTPUT_VARIABLE GOOGLEHASH_COMPILE_RESULT)
18 endif(GOOGLEHASH_INCLUDES)
20 include(FindPackageHandleStandardArgs)
21 find_package_handle_standard_args(GOOGLEHASH DEFAULT_MSG GOOGLEHASH_INCLUDES GOOGLEHASH_COMPILE)
23 mark_as_advanced(GOOGLEHASH_INCLUDES)