aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tools/lemon/CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/lemon/CMakeLists.txt b/tools/lemon/CMakeLists.txt
index af62d4596e..8742aa9fc9 100644
--- a/tools/lemon/CMakeLists.txt
+++ b/tools/lemon/CMakeLists.txt
@@ -9,6 +9,11 @@
add_executable(lemon lemon.c)
+if(DEFINED LEMON_C_COMPILER)
+ set(CMAKE_C_COMPILER "${LEMON_C_COMPILER}")
+ set(CMAKE_C_FLAGS "")
+endif()
+
# To keep lemon.c as close to upstream as possible, deliberately ignore
# some stylistic issues.
set(lemon_cflags)