diff options
| author | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-02 18:48:13 +0100 |
|---|---|---|
| committer | ManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com> | 2023-02-02 18:48:24 +0100 |
| commit | 6276822e9e8f505756b386637df9e14dd5a8e2fb (patch) | |
| tree | 9294dc6114e2d92ea4eef6041a6809e2e4c44a27 /CMake/setup.cmake | |
| parent | 4e75549e7bd8b0ea032cf279066d0fac09577067 (diff) | |
Allow cmake -DOPTION_APPLE_X11=On without -U__APPLE__
Diffstat (limited to 'CMake/setup.cmake')
| -rw-r--r-- | CMake/setup.cmake | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CMake/setup.cmake b/CMake/setup.cmake index e89ecc7cc..bc98aa58e 100644 --- a/CMake/setup.cmake +++ b/CMake/setup.cmake @@ -2,7 +2,7 @@ # CMakeLists.txt to build the FLTK project using CMake (www.cmake.org) # Originally written by Michael Surette # -# Copyright 1998-2022 by Bill Spitzak and others. +# Copyright 1998-2023 by Bill Spitzak and others. # # This library is free software. Distribution and use rights are outlined in # the file "COPYING" which should have been included with this file. If this @@ -97,8 +97,6 @@ if (APPLE) set (HAVE_SCANDIR 1) set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated") if (OPTION_APPLE_X11) - set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -U__APPLE__") - set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -U__APPLE__") if (NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0)) # a.k.a. macOS version ≥ 10.13 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_LIBCPP_HAS_THREAD_API_PTHREAD") endif (NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0)) |
