summarylogtreecommitdiffstats
path: root/CMakeLists.txt.patch
blob: 678a41147f7cfbb53594e4cb3d529d31bf75739c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
--- lsyncd-release-2.1.6/CMakeLists.txt	2015-10-15 08:29:47.000000000 +0200
+++ ../lsyncd-release-2.1.6/CMakeLists.txt	2016-02-11 12:57:52.894941796 +0100
@@ -54,7 +54,7 @@
 # this supposes the Lua compiler 'luac' is sitting right next to the Lua interpreter 'lua'
 add_custom_command( OUTPUT runner.out
     COMMAND ${CMAKE_COMMAND} -E echo "Compiling built-in runner" 
-	COMMAND ${LUA_EXECUTABLE}c -o runner.out ${PROJECT_SOURCE_DIR}/lsyncd.lua
+	COMMAND ${LUA_COMPILER} -o runner.out ${PROJECT_SOURCE_DIR}/lsyncd.lua
     DEPENDS ${PROJECT_SOURCE_DIR}/lsyncd.lua
 ) 
 
@@ -75,14 +75,14 @@
 
 add_custom_command( OUTPUT defaults.out
     COMMAND ${CMAKE_COMMAND} -E echo "Compiling built-in default configs"
-	COMMAND ${LUA_EXECUTABLE}c -o defaults.out ${DEFAULT_CONFIGS}
+	COMMAND ${LUA_COMPILER} -o defaults.out ${DEFAULT_CONFIGS}
     DEPENDS ${DEFAULT_CONFIGS}
 ) 
 
 # the manpage
 add_custom_command( OUTPUT doc/lsyncd.1
     COMMAND ${CMAKE_COMMAND} -E echo "Updating the manpage"
-	COMMAND a2x --format=manpage doc/lsyncd.1.txt
+	COMMAND a2x --format=manpage ${PROJECT_SOURCE_DIR}/doc/lsyncd.1.txt
     DEPENDS doc/lsyncd.1.txt
 )
 add_custom_target( manpage ALL DEPENDS doc/lsyncd.1 )