summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2011-09-26 15:09:09 +0200
committerGravatar Nikias Bassen2011-09-26 15:09:09 +0200
commitda1c7787659973b2ace32731f0eb7d1bfeecd340 (patch)
tree3cb844b4c1578c526893cd8b5caf24422d944725 /src
parent13ecca44eefd367354070a22dec7c0829e1ba6fd (diff)
downloadlibplist-da1c7787659973b2ace32731f0eb7d1bfeecd340.tar.gz
libplist-da1c7787659973b2ace32731f0eb7d1bfeecd340.tar.bz2
move cmake endianess detection to proper place and actually USE it
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index a0d6179..0de4c8c 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -34,6 +34,7 @@ SET(libcnary_object_files
SET_SOURCE_FILES_PROPERTIES(${libcnary_object_files} PROPERTIES EXTERNAL_OBJECT true GENERATED true)
+SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -DPLIST_BYTE_ORDER=${PLIST_BYTE_ORDER}")
ADD_LIBRARY( plist SHARED ${libplist_SRC} ${libcnary_object_files} )
TARGET_LINK_LIBRARIES( plist ${LIBXML2_LIBRARIES} )
SET_TARGET_PROPERTIES( plist PROPERTIES VERSION ${LIBPLIST_LIBVERSION} )