summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2024-04-02 16:44:36 (GMT)
committerBrad King <brad.king@kitware.com>2024-04-02 16:48:24 (GMT)
commite6b63b5cb24e923662272b53fae066e16b235e69 (patch)
treef48de92a5c47303243015bdd92fe6b4e13c00ab9 /Modules
parent659bc156eff0a90c2ea3fdb3d866e07f8c0e436b (diff)
downloadCMake-e6b63b5cb24e923662272b53fae066e16b235e69.zip
CMake-e6b63b5cb24e923662272b53fae066e16b235e69.tar.gz
CMake-e6b63b5cb24e923662272b53fae066e16b235e69.tar.bz2
ARTOS: Add support for finding library files named with 'lib' prefix
Update the platform module added by commit 462fbd1eca (Add support for ARTOS platform using GNU C with ac compiler driver, 2015-08-13, v3.4.0-rc1~201^2) to tell `find_library` to consider library file names starting in `lib`. FindEXPAT needs this on ARTOS since commit 13079f382b (FindEXPAT: Fix for debug and other modified builds, 2023-02-18, v3.27.0-rc1~463^2) removed its explicit `libexpat` library name candidate. Fixes: #25776
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Platform/ARTOS.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Platform/ARTOS.cmake b/Modules/Platform/ARTOS.cmake
index f9365d6..1448191 100644
--- a/Modules/Platform/ARTOS.cmake
+++ b/Modules/Platform/ARTOS.cmake
@@ -7,7 +7,7 @@ set(CMAKE_SHARED_LIBRARY_SUFFIX ".a")
set(CMAKE_EXECUTABLE_SUFFIX ".x")
set(CMAKE_DL_LIBS "")
-set(CMAKE_FIND_LIBRARY_PREFIXES "")
+set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
# ARTOS does not support shared libs