• Scientific Computing | SciVision

  • Blog
  • Tags
  • Categories

CMAKE_SYSTEM_NAME detect operating system

21 May, 2020

As noted by CMake staff the various OS flags like “APPLE” and “UNIX” are “soft deprecated” because they have overlapping meanings. The CMAKE_SYSTEM_NAME docs note that typical values include:

  • Linux
  • Windows
  • Darwin
  • CMake
  • cmake