[CMake] using fetch_content imported modules and not system one

Stéphane Ancelot sancelot at numalliance.com
Thu Aug 29 09:14:10 EDT 2019


hi,

i used fetch_content to download bullet library , but I cant use it.

FetchContent_Declare(
   bullet
   GIT_REPOSITORY https://github.com/bulletphysics/bullet3.git
   GIT_TAG        2.88

)

FetchContent_GetProperties(bullet)
if(NOT bullet_POPULATED)
   FetchContent_Populate(bullet)
   add_subdirectory(${bullet_SOURCE_DIR} ${bullet_BINARY_DIR})
endif()

linking using bullet does not permit to find any include or lib file

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://cmake.org/pipermail/cmake/attachments/20190829/10459453/attachment.html>


More information about the CMake mailing list