mfreerdp: fix build with latest cmake
authorBernhard Miklautz <bernhard.miklautz@shacknet.at>
Sun, 11 Jan 2015 18:29:50 +0000 (19:29 +0100)
committerBernhard Miklautz <bernhard.miklautz@shacknet.at>
Sun, 11 Jan 2015 18:29:50 +0000 (19:29 +0100)
Newer versions of cmake seem to use CMAKE_C_FLAGS for objective-c.
Now both flags are set for compatibility.

client/Mac/cli/CMakeLists.txt

index e8033e2..d7b7b41 100644 (file)
@@ -63,6 +63,7 @@ set_target_properties(${MODULE_NAME} PROPERTIES RESOURCE "${${MODULE_PREFIX}_RES
 
 # Tell the compiler where to look for the FreeRDP framework
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -F../")
+set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -F../")
 
 # Tell XCode where to look for the MacFreeRDP framework
 set_target_properties(${MODULE_NAME} PROPERTIES XCODE_ATTRIBUTE_FRAMEWORK_SEARCH_PATHS