$OpenBSD: patch-src_openrct2_CMakeLists_txt,v 1.2 2017/09/09 20:03:15 bcallah Exp $

Don't define DEBUG.

Index: src/openrct2/CMakeLists.txt
--- src/openrct2/CMakeLists.txt.orig
+++ src/openrct2/CMakeLists.txt
@@ -195,7 +195,7 @@ endif ()
 
 if (APPLE OR STATIC OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD")
     find_library(ICONV_LIBRARIES NAMES iconv libiconv libiconv-2 c)
-    target_link_libraries(${PROJECT} ${ICONV_LIBRARIES})
+    target_link_libraries(${PROJECT} ${ICONV_LIBRARIES} -L${OPENBSD_X11BASE}/lib)
 endif()
 
 # Includes
@@ -224,7 +224,7 @@ endif()
 set(DEBUG_LEVEL 0 CACHE STRING "Select debug level for compilation. Use value in range 0–3.")
 set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -fstrict-aliasing -Werror -Wundef -Wmissing-declarations -Winit-self -Wall -Wno-unknown-pragmas -Wno-unused-function -Wno-missing-braces ")
 set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -Wno-comment -Wshadow  -Wmissing-declarations -Wnonnull")
-set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS} -DDEBUG=${DEBUG_LEVEL}")
+set(COMMON_COMPILE_OPTIONS "${COMMON_COMPILE_OPTIONS}")
 
 # On mingw all code is already PIC, this will avoid compiler error on redefining this option
 if (NOT MINGW)
