CMake: treat inline C files as headers
This commit is contained in:
@@ -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}")
|
||||
|
||||
Reference in New Issue
Block a user