summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorFred Baksik <frodak17@gmail.com>2019-01-05 16:01:21 (GMT)
committerFred Baksik <frodak17@gmail.com>2019-01-16 15:41:27 (GMT)
commit595932c4f0570ab6bdef0a50a321877ffa9c50e4 (patch)
tree1f104faee6672e08eaa34fcc179a21a614bb7848 /Modules/Compiler
parent2ed2d6b46f9fb8f0742ce60bef16f1d636008136 (diff)
downloadCMake-595932c4f0570ab6bdef0a50a321877ffa9c50e4.zip
CMake-595932c4f0570ab6bdef0a50a321877ffa9c50e4.tar.gz
CMake-595932c4f0570ab6bdef0a50a321877ffa9c50e4.tar.bz2
GHS: Update the link line processing
-- add missing executable linker libs from: CMAKE_C_STANDARD_LIBRARIES -- add missed transitive link libraries -- add skipped library linker options -- The linker expects -l../relative/path/to/lib.a to be relative to the top-level project Because there can be multiple top-level projects convert the path to an absolute path to target
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/GHS.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/Compiler/GHS.cmake b/Modules/Compiler/GHS.cmake
index 0583a23..b41c3eb 100644
--- a/Modules/Compiler/GHS.cmake
+++ b/Modules/Compiler/GHS.cmake
@@ -4,5 +4,5 @@ endif()
set(__COMPILER_GHS 1)
set(CMAKE_EXECUTABLE_SUFFIX "")
-set(CMAKE_LIBRARY_PATH_TERMINATOR "\n")
-set(CMAKE_LIBRARY_PATH_FLAG " -L")
+set(CMAKE_LIBRARY_PATH_TERMINATOR "")
+set(CMAKE_LIBRARY_PATH_FLAG "")