$OpenBSD: patch-CMakeLists_txt,v 1.1.1.1 2006/12/19 19:15:25 steven Exp $
--- CMakeLists.txt.orig	Fri Nov 10 23:29:23 2006
+++ CMakeLists.txt	Tue Dec 19 20:11:22 2006
@@ -1,9 +1,11 @@
 CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
+include(TestBigEndian)
 project(mppenc C)
 set(CMAKE_VERBOSE_MAKEFILE false)
 
+TEST_BIG_ENDIAN(WORDS_BIGENDIAN)
 if(NOT MSVC)
-set(CMAKE_C_FLAGS "-O2 -ffast-math -fomit-frame-pointer -pipe")
+set(CMAKE_C_FLAGS "-O2 -ffast-math -fomit-frame-pointer -pipe ${CMAKE_C_FLAGS}")
 endif(NOT MSVC)
 
 add_subdirectory(src)
