openbsd-ports/x11/freerdp/patches/patch-CMakeLists_txt
sthen dcfb642393 Update to freerdp 1.0.1; various improvements, notably with certificate
handling. Add a no_cups flavour while there. ok merdely@
2012-03-24 18:53:27 +00:00

23 lines
896 B
Plaintext

$OpenBSD: patch-CMakeLists_txt,v 1.3 2012/03/24 18:53:27 sthen Exp $
--- CMakeLists.txt.orig Fri Feb 10 02:01:42 2012
+++ CMakeLists.txt Fri Mar 23 14:23:22 2012
@@ -66,7 +66,6 @@ if(CMAKE_COMPILER_IS_GNUCC)
endif()
if(CMAKE_BUILD_TYPE STREQUAL "Release")
set(CMAKE_C_FLAGS_RELEASE "-DNDEBUG")
- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O2")
endif()
if(WITH_SSE2_TARGET)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -msse2")
@@ -132,6 +131,10 @@ set(FREERDP_PLUGIN_PATH "${CMAKE_INSTALL_PREFIX}/${CMA
# Include directories
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_SOURCE_DIR}/include)
+
+# Done after dirs in freerdp tree to avoid failure when freerdp is installed
+include_directories(/usr/local/include)
+link_directories(/usr/local/lib)
# Configure files
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)