From f0bb27017dc581f33be9c04301ad5b9ed9c9913a Mon Sep 17 00:00:00 2001 From: root Date: Sun, 22 Aug 2010 17:34:00 +0000 Subject: [PATCH] CMAKE_CURRENT_SOURCE_DIR was replaced with libunwind_SOURCE_DIR --- CMakeLists.txt | 2 ++ src/config.cmake | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e97c570c..f926211f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,6 @@ cmake_minimum_required(VERSION 2.8) +project(libunwind) + add_subdirectory(src) diff --git a/src/config.cmake b/src/config.cmake index 8842c8cc..a60881c0 100644 --- a/src/config.cmake +++ b/src/config.cmake @@ -34,8 +34,8 @@ check_function_exists(ttrace HAVE_TTRACE) check_include_file(unistd.h HAVE_UNISTD_H) test_big_endian(IS_BIG_ENDIAN) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/config.h.cmake.in +configure_file(${libunwind_SOURCE_DIR}/src/config.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/include/config.h) -configure_file(${CMAKE_CURRENT_SOURCE_DIR}/libunwind-common.h.cmake.in +configure_file(${libunwind_SOURCE_DIR}/src/libunwind-common.h.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/include/libunwind-common.h)