Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 735
    • Issues 735
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 205
    • Merge requests 205
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Issues
  • #6277

Closed
Open
Created Jan 24, 2008 by Kitware Robot@kwrobotOwner

VTK should not force -no-cpp-precomp compiler flag on Mac OS X

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


In VTK's main vtkDetermineCompilerFlags.cmake there is the following:

IF(APPLE) IF(CMAKE_COMPILER_IS_GNUCXX) SET(VTK_REQUIRED_C_FLAGS "${VTK_REQUIRED_C_FLAGS} -no-cpp-precomp") SET(VTK_REQUIRED_CXX_FLAGS "${VTK_REQUIRED_CXX_FLAGS} -no-cpp-precomp")

I would like to request that the "-no-cpp-precomp" be removed. Basically, it is an obsolete flag that is only in Apple's gcc and not the FSF gcc. It's not even in the man page.

The reason I make this request is that in beta versions of Apple's gcc 4.2 the flag is gone, and so VTK cannot be built the way it is now. If I remove the flag, VTK builds fine.

This link has more info: http://gcc.gnu.org/ml/gcc-prs/2003-05/msg01546.html

The only reason I see to keep it is if it is absolutely needed for some really old Apple gcc, like 2.95. And even then it would need to be conditionalised.

Since VTK 5.4 will probably be out long after gcc 4.2 (given VTK's release frequency), I'd really like to see this fixed for VTK 5.2, so VTK will work with gcc 4.2 when it arrives in a future Xcode update.

Assignee
Assign to
Time tracking