mirror of
https://github.com/reactos/reactos.git
synced 2024-12-26 17:14:41 +00:00
[CMAKE] Stop setting the C standard on modules
Global standard is C99.
This commit is contained in:
parent
e0495079cb
commit
677f190f4c
6 changed files with 0 additions and 13 deletions
|
@ -103,9 +103,6 @@ foreach(_keyboard_layout ${_keyboard_layouts})
|
|||
else()
|
||||
# Use a custom linker script
|
||||
target_link_options(${_keyboard_layout} PRIVATE "-Wl,-T,${CMAKE_CURRENT_SOURCE_DIR}/kbdlayout.lds")
|
||||
|
||||
# Avoid "universal character names are only valid in C++ and C99" error.
|
||||
set_property(TARGET ${_keyboard_layout} PROPERTY C_STANDARD 99)
|
||||
endif()
|
||||
|
||||
# dynamic analysis switches
|
||||
|
|
|
@ -36,7 +36,6 @@ add_library(cdfs MODULE ${SOURCE} cdfs.rc)
|
|||
set_module_type(cdfs kernelmodedriver)
|
||||
target_link_libraries(cdfs ${PSEH_LIB} memcmp)
|
||||
add_importlibs(cdfs ntoskrnl hal)
|
||||
set_property(TARGET cdfs PROPERTY C_STANDARD 90)
|
||||
|
||||
add_cd_file(TARGET cdfs DESTINATION reactos/system32/drivers NO_CAB FOR all)
|
||||
add_registry_inf(cdfs_reg.inf)
|
||||
|
|
|
@ -111,7 +111,6 @@ target_link_libraries(ext2fs memcmp ${PSEH_LIB})
|
|||
add_definitions(-D__KERNEL__ -D_CRT_NO_POSIX_ERROR_CODES)
|
||||
set_module_type(ext2fs kernelmodedriver)
|
||||
add_importlibs(ext2fs ntoskrnl hal)
|
||||
set_property(TARGET ext2fs PROPERTY C_STANDARD 90)
|
||||
add_pch(ext2fs inc/ext2fs.h SOURCE)
|
||||
|
||||
add_cd_file(TARGET ext2fs DESTINATION reactos/system32/drivers FOR all)
|
||||
|
|
|
@ -22,7 +22,5 @@ if(CMAKE_C_COMPILER_ID STREQUAL "Clang")
|
|||
target_compile_options(nfs41_driver PRIVATE "-Wno-unused-value")
|
||||
endif()
|
||||
|
||||
set_property(TARGET nfs41_driver PROPERTY C_STANDARD 90)
|
||||
|
||||
add_cd_file(TARGET nfs41_driver DESTINATION reactos/system32/drivers FOR all)
|
||||
add_registry_inf(nfs41_reg.inf)
|
||||
|
|
|
@ -138,9 +138,6 @@ add_dependencies(ntdll_apitest load_notifications)
|
|||
|
||||
if(NOT MSVC)
|
||||
set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
|
||||
|
||||
# Avoid "universal character names are only valid in C++ and C99" error.
|
||||
set_property(TARGET ntdll_apitest PROPERTY C_STANDARD 99)
|
||||
endif()
|
||||
|
||||
add_rostests_file(TARGET ntdll_apitest)
|
||||
|
|
|
@ -38,9 +38,6 @@ add_dependencies(rtl_test_lib asm)
|
|||
|
||||
if(NOT MSVC)
|
||||
set_source_files_properties(RtlGetFullPathName_UstrEx.c PROPERTIES COMPILE_FLAGS "-Wno-format")
|
||||
|
||||
# Avoid "universal character names are only valid in C++ and C99" error.
|
||||
set_property(TARGET rtl_test_lib PROPERTY C_STANDARD 99)
|
||||
endif()
|
||||
|
||||
# RTL tests with static linkage (called unittest, so it won't run in rosautotest)
|
||||
|
|
Loading…
Reference in a new issue