Skip to content

Instantly share code, notes, and snippets.

@cristianadam
Created December 15, 2020 11:51
Show Gist options
  • Save cristianadam/aba476afae2a75d98f13621149aab336 to your computer and use it in GitHub Desktop.
Save cristianadam/aba476afae2a75d98f13621149aab336 to your computer and use it in GitHub Desktop.
PreLoad.cmake to add to your sources so that CMake would create fileApi JSON files for your IDE's CMake project loading
foreach(file cache-v2 cmakeFiles-v1 codemodel-v2)
file(WRITE "${CMAKE_BINARY_DIR}/.cmake/api/v1/query/${file}" "")
endforeach()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment