From c3ae30f82066d8d93b66a15ca03b08516c7ef412 Mon Sep 17 00:00:00 2001 From: jeaye Date: Mon, 6 Apr 2015 20:47:33 +0800 Subject: [PATCH] Update source generation #25 --- CMakeLists.txt | 6 +++--- lib/generate_sources | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) mode change 100644 => 100755 lib/generate_sources diff --git a/CMakeLists.txt b/CMakeLists.txt index 8883410..ffcda42 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,9 +122,9 @@ include_directories( ${ZLIB_INCLUDE_PATH} ) -message("Generating sources ...") -execute_process(COMMAND - lib/generate_sources ${CMAKE_CURRENT_LIST_DIR} ${LLVM_ROOT_PATH}) +message("Generating sources ... ") +execute_process( + COMMAND ${CMAKE_CURRENT_LIST_DIR}/lib/generate_sources ${CMAKE_CURRENT_LIST_DIR} ${LLVM_ROOT_PATH}) add_library(boost_parts STATIC ${BOOST_SRC}) diff --git a/lib/generate_sources b/lib/generate_sources old mode 100644 new mode 100755 index f48c9cc..803219c --- a/lib/generate_sources +++ b/lib/generate_sources @@ -2,7 +2,7 @@ pwd=$1 clang_dir=$2 -target=$1/include/env/impl.hpp +target=$pwd/include/env/impl.hpp [ -f $target ] && rm -f $target cat < $target