diff options
| author | Petr Mrázek | 2012-02-04 03:43:14 +0100 |
|---|---|---|
| committer | Petr Mrázek | 2012-02-04 03:43:14 +0100 |
| commit | 2ff994c18f83e25d30528208e20bc0263060d7b2 (patch) | |
| tree | 1a676effa249f509ca56ce2db5ed1fe566eff7bc /library/CMakeLists.txt | |
| parent | 1e89b8d79b09257d1e342eae582f47ec4da341dd (diff) | |
| download | dfhack-2ff994c18f83e25d30528208e20bc0263060d7b2.tar.gz dfhack-2ff994c18f83e25d30528208e20bc0263060d7b2.tar.bz2 dfhack-2ff994c18f83e25d30528208e20bc0263060d7b2.tar.xz | |
Make perl executable tweakable.
Diffstat (limited to 'library/CMakeLists.txt')
| -rw-r--r-- | library/CMakeLists.txt | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt index ba5333b1..c8fe57a9 100644 --- a/library/CMakeLists.txt +++ b/library/CMakeLists.txt @@ -15,7 +15,9 @@ include_directories (depends/tinyxml) include_directories (depends/tthread) add_subdirectory (depends/protobuf) -execute_process(COMMAND perl xml/list.pl xml include/df ";" +SET(PERL_EXECUTABLE "perl" CACHE FILEPATH "This is the perl executable to run in the codegen step. Tweak it if you need to run a specific one.") + +execute_process(COMMAND ${PERL_EXECUTABLE} xml/list.pl xml include/df ";" WORKING_DIRECTORY ${dfapi_SOURCE_DIR} OUTPUT_VARIABLE GENERATED_HDRS) @@ -142,7 +144,7 @@ FILE(GLOB GENERATE_INPUT_XMLS ${dfapi_SOURCE_DIR}/xml/*.xml) ADD_CUSTOM_COMMAND( OUTPUT ${dfapi_SOURCE_DIR}/include/df/static.inc - COMMAND perl xml/codegen.pl xml include/df + COMMAND ${PERL_EXECUTABLE} xml/codegen.pl xml include/df WORKING_DIRECTORY ${dfapi_SOURCE_DIR} MAIN_DEPENDENCY ${dfapi_SOURCE_DIR}/xml/codegen.pl DEPENDS ${GENERATE_INPUT_XMLS} ${GENERATE_INPUT_SCRIPTS} |
