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,111
    • Issues 4,111
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • 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
  • #19120
Closed
Open
Issue created Apr 02, 2019 by Martin Stiaszny@martin1

macOS: /usr/local/include not a system include directory under CMake

It appears that when clang is invoked through CMake, the system includes are missing. Here is the minimal project that I used to replicate the behavior: cmake-include-fail.zip

Method: I started with a completely fresh install of MacOS 10.14.3. I downloaded and installed CMake 3.14.1 from source. I then installed brew per their instructions:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Next I installed nlopt via brew:

brew install nlopt

When I use my hand-rolled Makefile to build the project, /usr/local/include is correctly added to the include path make-success.log. When using the CMake generated Makefiles, /usr/local/include is dropped from the include path cmake-fail.log.

Edited Apr 03, 2019 by Brad King
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking