Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • CMake CMake
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 4,102
    • Issues 4,102
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 14
    • Merge requests 14
  • 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
  • #17011
Closed
Open
Issue created Jun 23, 2017 by Alex Tennant@adtennant

Calling target_compile_features with a cxx feature on a C project cause segfault

Not a big deal, but not how I'd expect Cmake to handle this scenario.

cmake version 3.8.1, OSX 10.12.5

CMakeLists.txt:

cmake_minimum_required(VERSION 3.8.1)
project(Example LANGUAGES C)

add_library(Example dummy.c)
target_compile_features(Example PRIVATE cxx_enum_forward_declarations)

Result: Segmentation fault: 11

Edited Jun 23, 2017 by Alex Tennant
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking