002fe30d50
remove unecessary lib_depends don't hardcode /usr/local or /usr/X11R6 bump pointed out by, and OK ajacoutot@
22 lines
1.0 KiB
Plaintext
22 lines
1.0 KiB
Plaintext
$OpenBSD: patch-CMakeLists_txt,v 1.2 2009/10/09 23:45:19 phessler Exp $
|
|
--- CMakeLists.txt.orig Sat Dec 6 21:51:54 2008
|
|
+++ CMakeLists.txt Sat Oct 10 01:19:48 2009
|
|
@@ -19,7 +19,8 @@ endif(COMMAND cmake_policy)
|
|
INCLUDE_DIRECTORIES(. BlinkenBMF/ SDL_gfx/ BlinkenLUA/LuaBindings/headers/ BlinkenLUA/LuaMain/headers/ BlinkenLib/headers/)
|
|
# Fixes a problem on FreeBSD - SDL_stdinc.h includes iconv.h, but that is in
|
|
# /usr/local/include/iconv.h, which is not searched for include files...
|
|
-INCLUDE_DIRECTORIES(/usr/local/include)
|
|
+INCLUDE_DIRECTORIES(${TRUEPREFIX}/include)
|
|
+LINK_DIRECTORIES(${X11BASE}/lib)
|
|
|
|
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake-modules/)
|
|
|
|
@@ -136,6 +137,7 @@ ENDIF(USE_THEORA)
|
|
TARGET_LINK_LIBRARIES(LostPixels ${SDL_LIBRARY})
|
|
TARGET_LINK_LIBRARIES(LostPixels ${SDLIMAGE_LIBRARY})
|
|
TARGET_LINK_LIBRARIES(LostPixels ${SDLTTF_LIBRARY})
|
|
+TARGET_LINK_LIBRARIES(LostPixels Xdmcp Xau X11 Xrender Xext Xrandr freetype)
|
|
|
|
IF(SDLNET_FOUND)
|
|
TARGET_LINK_LIBRARIES(LostPixels ${SDLNET_LIBRARY})
|