summaryrefslogtreecommitdiffstats
path: root/Source/WXDialog/bin
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WXDialog/bin')
-rw-r--r--Source/WXDialog/bin/FindwxWin.cmake10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/WXDialog/bin/FindwxWin.cmake b/Source/WXDialog/bin/FindwxWin.cmake
index 67ef392..9dd9008 100644
--- a/Source/WXDialog/bin/FindwxWin.cmake
+++ b/Source/WXDialog/bin/FindwxWin.cmake
@@ -420,10 +420,12 @@ ELSE( WIN32 )
# just in case `gtk-config --cflags`does not work
# SET( WXWINDOWS_INCLUDE_DIR ${WXWINDOWS_INCLUDE_DIR} /usr/include/gtk-2.0 /usr/include/gtk-2.0/include /usr/lib/gtk-2.0/include /usr/include/glib-2.0 /usr/lib/glib-2.0/include /usr/include/pango-1.0 /usr/include/atk-1.0 )
# What about FindGTK.cmake? and what if somebody uses wxMotif?
- SET( CMAKE_WX_CXX_FLAGS "${CMAKE_WX_CXX_FLAGS} `gtk-config --cflags`" )
- #find Xwindows
- INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
- SET( WXWINDOWS_INCLUDE_DIR ${WXWINDOWS_INCLUDE_DIR} ${X11_INCLUDE_DIR} )
+ IF(NOT APPLE)
+ SET( CMAKE_WX_CXX_FLAGS "${CMAKE_WX_CXX_FLAGS} `gtk-config --cflags`" )
+ #find Xwindows
+ INCLUDE( ${CMAKE_ROOT}/Modules/FindX11.cmake )
+ SET( WXWINDOWS_INCLUDE_DIR ${WXWINDOWS_INCLUDE_DIR} ${X11_INCLUDE_DIR} )
+ ENDIF(NOT APPLE)
ENDIF( CYGWIN OR MINGW )
ENDIF( WIN32 )