CMake: treat inline C files as headers
This commit is contained in:
parent
f9b6709a17
commit
4a4aaabfa9
Notes:
blender-bot
2023-02-14 13:47:34 +01:00
Referenced by issue #30962, Change inline math source files to header files
|
@ -205,10 +205,14 @@ if(WIN32)
|
|||
)
|
||||
endif()
|
||||
|
||||
blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")
|
||||
# no need to compile object files for inline headers.
|
||||
set_source_files_properties(
|
||||
intern/math_base_inline.c
|
||||
intern/math_color_blend_inline.c
|
||||
intern/math_color_inline.c
|
||||
intern/math_geom_inline.c
|
||||
intern/math_vector_inline.c
|
||||
PROPERTIES HEADER_FILE_ONLY TRUE
|
||||
)
|
||||
|
||||
if(MSVC)
|
||||
# Quiet warning about inline math library files that do not export symbols.
|
||||
# (normally you'd exclude from project, but we still want to see the files in MSVC)
|
||||
set_target_properties(bf_blenlib PROPERTIES STATIC_LIBRARY_FLAGS /ignore:4221)
|
||||
endif()
|
||||
blender_add_lib(bf_blenlib "${SRC}" "${INC}" "${INC_SYS}")
|
||||
|
|
Loading…
Reference in New Issue