diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 20:47:07 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2002-10-29 20:47:07 (GMT) |
commit | 2d9330fa1d5b20aba6ebce5109bc2e310fab4b23 (patch) | |
tree | 4a7058a50cad85cc998312cbfaede43de5838196 /Modules/FindX11.cmake | |
parent | 2d970c26f02b56e4d98ab148fbed5d2753427672 (diff) | |
download | CMake-2d9330fa1d5b20aba6ebce5109bc2e310fab4b23.zip CMake-2d9330fa1d5b20aba6ebce5109bc2e310fab4b23.tar.gz CMake-2d9330fa1d5b20aba6ebce5109bc2e310fab4b23.tar.bz2 |
Now it should work
Diffstat (limited to 'Modules/FindX11.cmake')
-rw-r--r-- | Modules/FindX11.cmake | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/Modules/FindX11.cmake b/Modules/FindX11.cmake index 92e68aa..ec9048f 100644 --- a/Modules/FindX11.cmake +++ b/Modules/FindX11.cmake @@ -39,21 +39,14 @@ IF (UNIX) /usr/X11R6/lib ) - SET (CMAKE_X_LIBS "${CMAKE_X_PRE_LIBS} ${CMAKE_X_LIBS} ${CMAKE_X_EXTRA_LIBS}" - CACHE STRING - "Libraries and options used in X11 programs.") - - SET (CMAKE_X_CFLAGS "${CMAKE_X_CFLAGS}" CACHE STRING - "X11 extra flags.") - IF(CMAKE_X11_INCLUDE_PATH) IF(CMAKE_X11_LIBDIR) - SET( CMAKE_X_LIBS ${CMAKE_X_LIBS} ${CMAKE_X11_LIBDIR} ) + SET( CMAKE_X_LIBS "${CMAKE_X_LIBS};${CMAKE_X11_LIBDIR}" ) ENDIF(CMAKE_X11_LIBDIR) IF(CMAKE_Xext_LIBDIR) - SET( CMAKE_X_LIBS ${CMAKE_X_LIBS} ${CMAKE_Xext_LIBDIR} ) + SET( CMAKE_X_LIBS "${CMAKE_X_LIBS};${CMAKE_Xext_LIBDIR}" ) ENDIF(CMAKE_Xext_LIBDIR) ENDIF(CMAKE_X11_INCLUDE_PATH) @@ -64,5 +57,13 @@ IF (UNIX) SET(CMAKE_HAS_X 1) ENDIF(CMAKE_X_LIBS) ENDIF(CMAKE_X11_INCLUDE_PATH) + IF(CMAKE_HAS_X) + SET (CMAKE_X_LIBS "${CMAKE_X_PRE_LIBS};${CMAKE_X_LIBS};${CMAKE_X_EXTRA_LIBS}" + CACHE STRING + "Libraries and options used in X11 programs.") + + SET (CMAKE_X_CFLAGS "${CMAKE_X_CFLAGS}" CACHE STRING + "X11 extra flags.") + ENDIF(CMAKE_HAS_X) SET (CMAKE_HAS_X ${CMAKE_HAS_X} CACHE INTERNAL "Is X11 around.") ENDIF (UNIX) |