[cmake-developers] 15975 Bug Fix GHS MULTI try compile
Geoffrey Viola
Geoffrey.Viola at asirobots.com
Mon Mar 21 07:28:56 EDT 2016
Attached are updates for the bug recorded at https://cmake.org/Bug/view.php?id=15975. The updates make the Green Hills MULTI executable suffix, .as, set in the CMAKE_EXECUTABLE_SUFFIX macro, instead of in the C++ code where it wasn't accessible to the other parts of CMake.
As a side note, both Green Hills and Linux do not have suffixes on their executables by default. The .as suffix is somewhat arbitrary. A CMAKE_EXECUTABLE_SUFFIX value of "" will not work because Green Hills MULTI does not allow for filenames and folders in the same directory. At try_compile's the compilation stage, there will be a folder named after the project name for the project at the root. Since the RUNTIME_OUTPUT_DIRECTORY is set to the root, the compilation will stop and explain that the output file is a directory.
This message contains confidential information and is intended only for the recipient. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. Finally, the recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160321/12fae96d/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-15975-fix-for-GHS-MULTI-try_compile.patch
Type: application/octet-stream
Size: 3042 bytes
Desc: 0001-15975-fix-for-GHS-MULTI-try_compile.patch
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160321/12fae96d/attachment.obj>
More information about the cmake-developers
mailing list