Notes |
|
(0034841)
|
Brad King
|
2013-12-20 11:54
|
|
|
|
(0034842)
|
Brad King
|
2013-12-20 11:55
|
|
It looks like TARGET_BASE is no longer used by any CMake-provided platform modules. Its implementation could be dropped if it were not for compatibility with third-party code that assumes it exists.
@tisi: What is the need for <TARGET_BASE> in your case? |
|
|
(0034855)
|
tisi
|
2013-12-23 02:13
|
|
I use the TARGET_BASE within the CMAKE_C_LINK_EXECUTABLE (for an embedded system project):
SET(CMAKE_C_LINK_EXECUTABLE
"dld <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> -@O=<TARGET_BASE>.map <OBJECTS> <LINK_LIBRARIES> -o <TARGET>"
"ddump -Rv -o <TARGET_BASE>.s19 <TARGET>" )
I added the support for the windriver compiler to CMake (locally, it's not in your repository) and i use two commands for linking. There are two uses for the TARGET_BASE. The first line is the linker command and outputs additionally to the binary a map file. It would be nice to name it "target.map" instead of "target.elf.map". In the second line it is used again to generate an s19 hex-file, which is used to programm an embedded microcontroller. The s19 file is always needed for each executable, and so i decided to add the command here (instead of add_custom_command for each target). Again, it would be nicer if the name could be "target.s19" instead of "target.elf.s19".
This was working fine for a few years now with the "make" generator (we didn't use any other generator yet). Right now we plan to switch to ninja and found that it is not working in the expected way. |
|
|
(0042452)
|
Kitware Robot
|
2016-06-10 14:29
|
|
Resolving issue as `moved`.
This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page. |
|