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

Nicolas Desprès nicolas.despres at gmail.com
Mon Jan 19 18:44:34 EST 2009


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


More information about the CMake mailing list