[
https://issues.apache.org/jira/browse/AVRO-449?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12845515#action_12845515
]
Matt Massie commented on AVRO-449:
----------------------------------
This patch doesn't work, as is, on CentOS 5.4 using cmake 2.4.
I was able to get it to build using the following changes:
{code}
diff --git a/lang/c/CMakeLists.txt b/lang/c/CMakeLists.txt
index e675154..df596c6 100644
--- a/lang/c/CMakeLists.txt
+++ b/lang/c/CMakeLists.txt
@@ -16,7 +16,7 @@
# specific language governing permissions and limitations
# under the License.
#
-cmake_minimum_required(VERSION 2.6)
+cmake_minimum_required(VERSION 2.4)
project(AvroC)
enable_testing()
file(READ "${CMAKE_CURRENT_SOURCE_DIR}/../../share/VERSION.txt" AVRO_VERSION)
@@ -25,9 +25,9 @@ if(APPLE)
set(CMAKE_OSX_ARCHITECTURES "ppc;i386;x86_64" CACHE STRING "Build
architectures for Mac OS X" FORCE)
endif(APPLE)
-if(CMAKE_COMPILER_IS_GNUCC)
- set(WARNING_FLAGS "-W -Wall")
-endif(CMAKE_COMPILER_IS_GNUCC)
+#if(CMAKE_COMPILER_IS_GNUCC)
+# set(WARNING_FLAGS "-W -Wall")
+#endif(CMAKE_COMPILER_IS_GNUCC)
set(CMAKE_C_FLAGS ${CMAKE_C_FLAGS} ${WARNING_FLAGS})
include_directories(${AvroC_SOURCE_DIR}/src)
{code}
Since I know very little about CMake it would be nice to know the Right way to
do this.
> CMake-based build system for Avro/C
> -----------------------------------
>
> Key: AVRO-449
> URL: https://issues.apache.org/jira/browse/AVRO-449
> Project: Avro
> Issue Type: New Feature
> Components: c
> Affects Versions: 1.3.0
> Reporter: Bruce Mitchener
> Assignee: Bruce Mitchener
> Attachments: avro_cmake.diff
>
>
> I am working on a CMake-based build system for Avro/C. This has these
> advantages over the current autoconf build system:
> * Easier to get features like universal binaries correct.
> * Works on Windows to make it easier to work on a Windows port of Avro/C.
> * Lets us generate project files for Visual Studio and XCode.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.