mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-27 23:34:57 -04:00
CMake: Escape $<LINK_ONLY> in exported packages file
This commit is contained in:
parent
a37eabe089
commit
bc152f665c
@ -417,6 +417,11 @@ function(export_packages filename)
|
||||
set(exports "${exports})\n")
|
||||
endforeach(pkg)
|
||||
|
||||
# file(GENERATE) does not like $<LINK_ONLY:...> (and it's meant to be
|
||||
# consumed by our importer) so we escape it
|
||||
set(_bling "$<1:$>") # genex-escaped $
|
||||
string(REPLACE "$<LINK_ONLY:" "${_bling}<LINK_ONLY:" exports "${exports}")
|
||||
|
||||
file(GENERATE OUTPUT "${filename}" CONTENT "${exports}")
|
||||
endfunction(export_packages)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user