ccaudio-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ccaudio-devel] [patch] CMakeLists.txt and config.h.cmake


From: David Sugar
Subject: Re: [Ccaudio-devel] [patch] CMakeLists.txt and config.h.cmake
Date: Wed, 23 Mar 2011 05:13:58 -0400
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110223 Lightning/1.0b2 Thunderbird/3.1.8

This also got propagated into the cmake for sipwitch.  Both are fixed
now.  Thanks!

On 03/21/2011 07:39 AM, Pietro Cerutti wrote:
> Hi,
> 
> The configure_file CMake directive has to appear after the variables
> used in the configuration file have been set, otherwise the effect is
> not the desired one. In particular, check_include_files must appear
> before configure_file.
> 
> This patch solves the problem.
> 
> 
> --- CMakeLists.txt.orig       2011-03-21 12:41:35.000000000 +0100
> +++ CMakeLists.txt    2011-03-21 12:41:51.000000000 +0100
> @@ -31,8 +31,6 @@
>  # set to true for debug and trace during CMakeLists development
>  set(CMAKE_VERBOSE_MAKEFILE FALSE)
>  
> -configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
> -
>  # Set defaults and pass common options.  Common build options can be passed
>  # to cmake using cmake -DWITH_CFLAGS="...", WITH_LIBS, and WITH_INCLUDES
>  include_directories(${CMAKE_CURRENT_BINARY_DIR} 
> ${CMAKE_CURRENT_SOURCE_DIR}/inc ${WITH_INCLUDES})
> @@ -117,6 +115,8 @@
>      endif()
>  endif()
>  
> +configure_file(config.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/config.h)
> +
>  file(GLOB ccaudio_src src/*.cpp)
>  set(ccaudio_inc inc/ccaudio2.h)
>  add_library(ccaudio ${BUILD_LIBRARY_TYPE} ${ccaudio_src} ${ccaudio_inc})
> 
> 
> 
> 
> 
> _______________________________________________
> Ccaudio-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/ccaudio-devel

Attachment: dyfet.vcf
Description: Vcard


reply via email to

[Prev in Thread] Current Thread [Next in Thread]