cpp_vcpkg_project icon indicating copy to clipboard operation
cpp_vcpkg_project copied to clipboard

The vcpkg must not installed in source directory!

Open ClausKlein opened this issue 2 years ago • 2 comments

this files will be used from doxygen and clang-tidy:

|| [5/5] Generating documentation - entry file: /Users/clausklein/Workspace/cpp/cpp_vcpkg_project/build/gcc-release/html/index.html
build/default/vcpkg_installed/x64-osx/include/fmt/format.h|1017| warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
build/developer/vcpkg_installed/x64-osx/include/fmt/format.h|1017| warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
build/vcpkg_installed/x64-osx/include/fmt/format.h|1017| warning: Found ';' while parsing initializer list! (doxygen could be confused by a macro call without semicolon)
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class Catch::Clara::Detail::UnaryLambdaTraits< decltype(&L::operator())>!
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class UnaryLambdaTraits< decltype(&L::operator())>!
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class Catch::Clara::Detail::UnaryLambdaTraits< decltype(&L::operator())>!
build/developer/vcpkg_installed/x64-osx/include/catch2/internal/catch_clara.hpp|82| warning: Detected potential recursive class relation between class Catch::Clara::Detail::UnaryLambdaTraits and base class UnaryLambdaTraits< decltype(&L::operator())>!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/developer/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class detail::make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/vcpkg_installed/x64-osx/include/fmt/ranges.h|192| warning: Detected potential recursive class relation between class detail::make_integer_sequence and base class make_integer_sequence< T, N - 1, N - 1, Ns... >!
build/default/vcpkg_installed/x64-osx/include/fmt/format.h|4511| warning: no uniquely matching class member found for ...

ClausKlein avatar Apr 05 '24 09:04 ClausKlein

There's a way to ignore the generation of documentation for the vcpkg dependencies: https://github.com/aminya/project_options/blob/72832cab55ef259989fa88378d8954bfc9ceac0b/src/Doxygen.cmake#L36

aminya avatar Apr 05 '24 16:04 aminya

but each preset has its own binaryDir:

bash-5.2$ grep -rw DOXYGEN_EXCLUDE_PATTERNS 
./build/developer/_deps/_project_options-src/src/Doxygen.cmake:  if(NOT DOXYGEN_EXCLUDE_PATTERNS)
./build/developer/_deps/_project_options-src/src/Doxygen.cmake:    set(DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_BINARY_DIR}/vcpkg_installed/*"
./build/RelWithDebInfo/_deps/_project_options-src/src/Doxygen.cmake:  if(NOT DOXYGEN_EXCLUDE_PATTERNS)
./build/RelWithDebInfo/_deps/_project_options-src/src/Doxygen.cmake:    set(DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_BINARY_DIR}/vcpkg_installed/*"
./build/Release/_deps/_project_options-src/src/Doxygen.cmake:  if(NOT DOXYGEN_EXCLUDE_PATTERNS)
./build/Release/_deps/_project_options-src/src/Doxygen.cmake:    set(DOXYGEN_EXCLUDE_PATTERNS "${CMAKE_CURRENT_BINARY_DIR}/vcpkg_installed/*"

Again a reason why it is recommended to have binaryDir NOT inside the sourceDir.

ClausKlein avatar Apr 05 '24 21:04 ClausKlein