mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 02:39:48 -06:00
Update the platform module added by commit462fbd1eca(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 commit13079f382b(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
18 lines
532 B
CMake
18 lines
532 B
CMake
# Support for ARTOS RTOS (locamation.com)
|
|
set(CMAKE_LINK_LIBRARY_SUFFIX "")
|
|
set(CMAKE_STATIC_LIBRARY_PREFIX "")
|
|
set(CMAKE_STATIC_LIBRARY_SUFFIX ".a")
|
|
set(CMAKE_SHARED_LIBRARY_PREFIX "")
|
|
set(CMAKE_SHARED_LIBRARY_SUFFIX ".a")
|
|
set(CMAKE_EXECUTABLE_SUFFIX ".x")
|
|
set(CMAKE_DL_LIBS "")
|
|
|
|
set(CMAKE_FIND_LIBRARY_PREFIXES "lib" "")
|
|
set(CMAKE_FIND_LIBRARY_SUFFIXES ".a")
|
|
|
|
# ARTOS does not support shared libs
|
|
set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE)
|
|
|
|
set(CMAKE_C_LINK_SHARED_LIBRARY )
|
|
set(CMAKE_C_LINK_MODULE_LIBRARY )
|