aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lemon
diff options
context:
space:
mode:
authorEvan Huus <eapache@gmail.com>2012-09-20 02:55:22 +0000
committerEvan Huus <eapache@gmail.com>2012-09-20 02:55:22 +0000
commit5983528b695995185d3ae73018a5ebffc978dfab (patch)
tree765e6829a7c17662ab992c7ca2fa190e1dd29465 /tools/lemon
parent4501a9bc8494e557bcbe44b38fbd1ec067783a69 (diff)
Fix lemon build with cmake by defining _U_. I feel like there's a better
way than all the horrid escaping I had to do, but I don't know what it is. svn path=/trunk/; revision=45019
Diffstat (limited to 'tools/lemon')
-rw-r--r--tools/lemon/CMakeLists.txt6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt
index a6c53372c2..ebcf451d10 100644
--- a/tools/lemon/CMakeLists.txt
+++ b/tools/lemon/CMakeLists.txt
@@ -41,6 +41,12 @@ set(lemon_LIBS
# Do we need something here on any platform?
)
+if(CMAKE_COMPILER_IS_GNUCC)
+ add_definitions(-D_U_=__attribute__\(\(unused\)\))
+else()
+ add_definitions(-D_U_=)
+endif()
+
add_executable(lemon ${lemon_FILES})
target_link_libraries(lemon ${lemon_LIBS})