xref: /reactos/sdk/lib/gcc-compat/CMakeLists.txt (revision 4e5e72fa)
1
2include_directories(
3    ${REACTOS_SOURCE_DIR}/sdk/lib/crt/include)
4
5list(APPEND SOURCE
6    __mingw_vsprintf.c
7    __throw_out_of_range_fmt.cpp
8    StringCchCopyNA.c)
9
10add_library(stdc++compat ${SOURCE})
11set_target_cpp_properties(stdc++compat WITH_EXCEPTIONS)
12add_dependencies(stdc++compat xdk)
13target_link_libraries(stdc++compat libmsvcrt)
14remove_target_compile_option(stdc++compat "$<$<AND:$<COMPILE_LANGUAGE:CXX>,$<NOT:$<IN_LIST:cppstl,$<TARGET_PROPERTY:LINK_LIBRARIES>>>>:-nostdinc>")
15target_compile_definitions(stdc++compat PRIVATE "$<$<COMPILE_LANGUAGE:CXX>:PAL_STDCPP_COMPAT>")
16