forked from OSchip/llvm-project
[cmake] Quote the path to the target exports file, fixes PR23313
llvm-svn: 235519
This commit is contained in:
parent
7ea4cfcf83
commit
ec6789bcfa
|
@ -108,7 +108,7 @@ function(add_llvm_symbol_exports target_name export_file)
|
|||
COMMENT "Creating export file for ${target_name}")
|
||||
set(export_file_linker_flag "${CMAKE_CURRENT_BINARY_DIR}/${native_export_file}")
|
||||
if(MSVC)
|
||||
set(export_file_linker_flag "/DEF:${export_file_linker_flag}")
|
||||
set(export_file_linker_flag "/DEF:\"${export_file_linker_flag}\"")
|
||||
endif()
|
||||
set_property(TARGET ${target_name} APPEND_STRING PROPERTY
|
||||
LINK_FLAGS " ${export_file_linker_flag}")
|
||||
|
|
Loading…
Reference in New Issue