autovcpkg icon indicating copy to clipboard operation
autovcpkg copied to clipboard

About the usage

Open SetoKaiba opened this issue 3 years ago • 0 comments

list(APPEND CMAKE_MODULE_PATH /path/to/AutoVcpkgCMakeFiles)
include(AutoVcpkg)
vcpkg_install(sdl2 opengl glew curl) # your dependencies

According to readme, the "/path/to/AutoVcpkgCMakeFile" can be non CMAKE_SOURCE_DIR. But in the cmake fle, the AutoVcpkgCMakeFiles must be in the CMAKE_SOURCE_DIR. https://github.com/fungos/autovcpkg/blob/7110a03b7c864e16920c5b5c6af13e8c9af6168b/autovcpkg/shim-sys/AutoVcpkg.cmake#L80

So there're two options.

  1. The copy command should be able to copy the file in non CMAKE_SOURCE_DIR
  2. Just update the documentaton to list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_LIST_DIR}) as the example does.

SetoKaiba avatar Mar 20 '21 07:03 SetoKaiba