xref: /reactos/sdk/lib/crt/oldnames.cmake (revision 5100859e)
1
2if(NOT MSVC)
3    _add_library(oldnames STATIC EXCLUDE_FROM_ALL ${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def)
4    set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/moldname-msvcrt.def PROPERTIES EXTERNAL_OBJECT TRUE)
5    set_target_properties(oldnames PROPERTIES LINKER_LANGUAGE "IMPLIB" PREFIX "")
6else()
7    add_asm_files(oldnames_asm oldnames-msvcrt.S)
8    add_library(oldnames ${oldnames_asm})
9    set_target_properties(oldnames PROPERTIES LINKER_LANGUAGE "C")
10endif()
11