google / binexport

Export disassemblies into Protocol Buffers
Apache License 2.0
1.05k stars 206 forks source link

add_subdirectory given source "googletest_root_dir" which is not an existing directory #31

Closed wyfSunflower closed 6 years ago

wyfSunflower commented 6 years ago

I can not compile s2geometry on windows subsystem for linux. I install gtest at /usr/include/gtest/ and I create a CMakeLists.txt in it: find_path(googletest_src_dir googletest/include/gtest/gtest.h HINTS ${GOOGLETEST_ROOT_DIR} PATHS ${PROJECT_BINARY_DIR}/googletest ) set(gtest_force_shared_crt ON CACHE BOOL "" FORCE) message("${googletest_src_dir}") add_subdirectory(${googletest_src_dir} ${PROJECT_BINARY_DIR}/googletest EXCLUDE_FROM_ALL)

but cmake error: GTEST_ROOT: /usr/include/gtest googletest_src_dir-NOTFOUND CMake Error at /usr/include/gtest/CMakeLists.txt:23 (add_subdirectory): add_subdirectory given source "googletest_src_dir-NOTFOUND" which is not an existing directory.

cblichmann commented 6 years ago

This is not the s2geometry project :) BinExport is a plugin for the commercial IDA Pro disassembler that exports disassembly data. Please also note that on Windows, you should use the native Visual Studio toolchain for BinExport development, not WSL.