Fix CMake code that should only be evaluated on macOS
Too much simplified code when introducing modern CMake and renaming some build options caused this issue. It's hopefully fixed nor, or at least improved. Todo: the code in question needs to be revised anyway.
This commit is contained in:
parent
957becbe28
commit
a6dc84ac83
@ -399,7 +399,7 @@ if((NOT APPLE OR FLTK_BACKEND_X11) AND NOT WIN32 AND NOT FLTK_BACKEND_WAYLAND)
|
||||
endif(X11_FOUND)
|
||||
endif()
|
||||
|
||||
if(FLTK_BACKEND_X11)
|
||||
if(APPLE AND FLTK_BACKEND_X11)
|
||||
if(NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0)) # a.k.a. macOS version ≥ 10.13
|
||||
list(APPEND FLTK_CFLAGS "-D_LIBCPP_HAS_THREAD_API_PTHREAD")
|
||||
endif(NOT(${CMAKE_SYSTEM_VERSION} VERSION_LESS 17.0.0))
|
||||
@ -415,7 +415,7 @@ if(FLTK_BACKEND_X11)
|
||||
list(TRANSFORM TEMP_INCLUDE_DIR PREPEND "-I")
|
||||
list(APPEND FLTK_CFLAGS "${TEMP_INCLUDE_DIR}")
|
||||
endif(X11_INCLUDE_DIR)
|
||||
endif(FLTK_BACKEND_X11)
|
||||
endif(APPLE AND FLTK_BACKEND_X11)
|
||||
|
||||
#######################################################################
|
||||
option(FLTK_USE_POLL "use poll if available" OFF)
|
||||
|
Loading…
Reference in New Issue
Block a user