Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,154
    • Issues 4,154
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • External wiki
    • External wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • CMakeCMake
  • CMakeCMake
  • Issues
  • #17061
Closed
Open
Issue created Jul 13, 2017 by Mathias Wagner@mathiaswagner

CMake fails with CMAKE_EXPORT_COMPILE_COMMANDS, CUDA and Ninja

I tried to enable CMAKE_EXPORT_COMPILE_COMMANDS in a project using CUDA. We use the native CUDA support. When using the Make generators everything is file and I can compile and everything works as expected. With the Ninja generators I get: -- Configuring done CMake Error: Error required internal CMake variable not set, cmake may not be built correctly. Missing variable is: CMAKE_CUDA_COMPILE_OBJECT CMake Error: Error required internal CMake variable not set, cmake may not be built correctly. Missing variable is: CMAKE_CUDA_COMPILE_OBJECT CMake Error: Error required internal CMake variable not set, cmake may not be built correctly. Missing variable is:

Steps to reproduce:

  • Clone QUDA from https://github.com/lattice/quda.git
  • Checkout branch hotfix/improve_eigen_download
  • make a build dir and run
  • cmake -GNinja

cmake works fine (Makefile generator)

I tried cmake 3.8.x as well as 3.9.0-rc6.

Edited Jul 13, 2017 by Mathias Wagner
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking