[CMake] Wrong LOCATION_<CONFIG> property value with MACOSX_BUNDLE option set

Nicolas Desprès nicolas.despres at gmail.com
Mon Jan 19 19:02:41 EST 2009


I forgot to mention that setting CMAKE_BUILD_TYPE by either Debug or
Release does not change the problem.

I except the value to be:

/Users/polrop/src/helloworld/_build/helloworld.app/Contents/MacOS/helloworld

Cheers,

On Tue, Jan 20, 2009 at 12:44 AM, Nicolas Desprès
<nicolas.despres at gmail.com> wrote:
> Hi there,
>
> I'm having trouble with LOCATION_<CONFIG> property when using
> MACOSX_BUNDLE at the same time with cmake version 2.6-patch 3 RC-8.
>
> The value of the property is the one without the MACOSX_BUNDLE option.
>
> Here my CMakeLists.txt for an helloworld project:
> ======
> cmake_minimum_required(VERSION 2.6.2)
> #set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/modules")
>
> project(helloworld)
>
> add_executable(helloworld MACOSX_BUNDLE
>  main.cc
>  )
> get_target_property(binary_loc helloworld LOCATION_${CMAKE_BUILD_TYPE})
> message("binary_loc=${binary_loc}")
> =====
>
> The output of cmake -G "Unix Makefiles" .. is:
> =====
> [...]
> binary_loc=/Users/polrop/src/helloworld/_build/helloworld
> [...]
> =====
>
> I'm using this cmake:
> http://www.cmake.org/files/v2.6/cmake-2.6.3-RC-8-Darwin-universal.dmg
>
> Cheers,
>
> --
> Nicolas Desprès
>



-- 
Nicolas Desprès


More information about the CMake mailing list