mirror of
https://git.mirrors.martin98.com/https://github.com/google/draco
synced 2025-08-12 07:19:01 +08:00
Merge pull request #645 from google/fix-build-cmake-pre-3.16
draco: Fix empty list handling in older CMakes.
This commit is contained in:
commit
b2059d9ab7
@ -331,8 +331,13 @@ macro(draco_add_library)
|
||||
endif()
|
||||
|
||||
# Determine if $lib_NAME is a header only target.
|
||||
set(sources_list ${lib_SOURCES})
|
||||
list(FILTER sources_list INCLUDE REGEX cc$)
|
||||
unset(sources_list)
|
||||
|
||||
if(lib_SOURCES)
|
||||
set(sources_list ${lib_SOURCES})
|
||||
list(FILTER sources_list INCLUDE REGEX cc$)
|
||||
endif()
|
||||
|
||||
if(NOT sources_list)
|
||||
if(NOT XCODE)
|
||||
# This is a header only target. Tell CMake the link language.
|
||||
|
Loading…
x
Reference in New Issue
Block a user