mirror of
https://github.com/NGSolve/netgen.git
synced 2024-11-11 16:49:16 +05:00
work around issue with LIST_SEPARATOR on MacosM1
just pass one TK_INCLUDE_PATH and find the others when necessary
This commit is contained in:
parent
7bea19057e
commit
814cc59c08
@ -254,6 +254,13 @@ if (USE_GUI)
|
||||
add_definitions(-DTCL -DOPENGL -DUSE_TOGL_2 -DUSE_TCL_STUBS -DUSE_TK_STUBS)
|
||||
include_directories(${TCL_INCLUDE_PATH})
|
||||
include_directories(${TK_INCLUDE_PATH})
|
||||
if(NOT EXISTS ${TK_INCLUDE_PATH}/tkWin.h AND EXISTS ${TK_INCLUDE_PATH}/../win/tkWin.h)
|
||||
include_directories(${TK_INCLUDE_PATH}/../win)
|
||||
endif()
|
||||
if(NOT EXISTS ${TK_INCLUDE_PATH}/x11/Xlib.h AND EXISTS ${TK_INCLUDE_PATH}/../xlib/X11/Xlib.h)
|
||||
include_directories(${TK_INCLUDE_PATH}/../xlib)
|
||||
endif()
|
||||
|
||||
set(LIBTOGL togl)
|
||||
|
||||
if(WIN32)
|
||||
|
@ -35,7 +35,7 @@ ExternalProject_Add(project_tk
|
||||
)
|
||||
|
||||
set(TCL_INCLUDE_PATH ${TCL_DIR}/generic)
|
||||
set(TK_INCLUDE_PATH ${TK_DIR}/generic;${TK_DIR}/xlib;${TK_DIR}/win)
|
||||
set(TK_INCLUDE_PATH ${TK_DIR}/generic)
|
||||
list(APPEND NETGEN_DEPENDENCIES project_tcl project_tk)
|
||||
|
||||
if(APPLE OR WIN32)
|
||||
|
Loading…
Reference in New Issue
Block a user