The following issue has been SUBMITTED. ====================================================================== https://cmake.org/Bug/view.php?id=16029 ====================================================================== Reported By: stw_sesa Assigned To: ====================================================================== Project: CMake Issue ID: 16029 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2016-03-22 10:29 EDT Last Modified: 2016-03-22 10:29 EDT ====================================================================== Summary: GHS Generator does not support LINK_FLAGS property Description: The GHS Generator ignores the LINK_FLAGS property of targets.
It can be set with: set_target_properties(<target> PROPERTIES LINK_FLAGS <link_flags>) I did not test it, but other target properties are probably ignored as well. See https://cmake.org/cmake/help/v3.5/manual/cmake-properties.7.html#target-properties for a complete list (for all Generators). Steps to Reproduce: add_executable(MyExampleApp main.cpp) set_target_properties(MyExampleApp PROPERTIES LINK_FLAGS "--myflag") The option "--myflag" is ignored and not added in the project file (MyExampleApp.gpj). Additional Information: I've attached a patch that implements the functionality, but I'm sure it needs some generalization and optimization to integrate it. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2016-03-22 10:29 stw_sesa New Issue 2016-03-22 10:29 stw_sesa File Added: 0001-LINK_FLAGS-property-implementation.patch ====================================================================== -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support the CMake community. For more information on each offering, please visit: CMake Support: http://cmake.org/cmake/help/support.html CMake Consulting: http://cmake.org/cmake/help/consulting.html CMake Training Courses: http://cmake.org/cmake/help/training.html Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/cmake-developers