From 5aa9bffe84c0c48605086f79369ccd86f7013b60 Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Wed, 6 Mar 2013 22:06:15 +0100 Subject: [PATCH] Fixes for out-of-source build. --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f4b655a3..507cf3af 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,6 +26,7 @@ INCLUDE(CheckLibraryExists) # CMake configuration SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY build/bin) SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY build/lib) +SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY build/lib) SET(CMAKE_VERBOSE_MAKEFILE ON) @@ -767,7 +768,7 @@ ENDIF() # Set our configure file -CONFIGURE_FILE(cmake/config.hpp.cmake vmime/config.hpp) +CONFIGURE_FILE(cmake/config.hpp.cmake ${CMAKE_SOURCE_DIR}/vmime/config.hpp) # PkgConfig post-configuration CONFIGURE_FILE(${CMAKE_SOURCE_DIR}/libvmime.pc.in ${CMAKE_BINARY_DIR}/libvmime.pc @ONLY)