[CMake] Target property LOCATION doesn't handle DEBUG_POSTFIX
Stephan Diederich
stephan.diederich at googlemail.com
Thu Apr 30 11:20:37 EDT 2009
Hi,
subject says all, here's the CMakeLists.txt:
----------
cmake_minimum_required(VERSION 2.6)
project(locate_test)
add_executable(location_test main.cpp)
set_target_properties(location_test PROPERTIES DEBUG_POSTFIX "d")
get_target_property(output location_test LOCATION)
message(${output})
----------
running cmake with "cmake ../ -DCMAKE_BUILD_TYPE=Debug" gives:
[...]
-- Detecting CXX compiler ABI info - done
/home/diederich/projects/tests/cmake/build/location_test
-- Configuring done
-- Generating done
-- Build files have been written to: /home/diederich/projects/tests/cmake/build
Is this the expected behaviour?
After digging through Mantis I've found this (somehow) related bug-report:
http://public.kitware.com/Bug/view.php?id=7868
and if I get it right, it states LOCATION can't be used for that.
Problem is, I want to pass a plugin I generate to an executable in
ADD_TEST like this:
ADD_TEST(check_LIBA_for_unresolved_symbols myBinary ${BUILT_PLUGIN}
Any hints how to do this?
Thanks in advance,
Stephan
More information about the CMake
mailing list