[cmake] Quote the path to the target exports file, fixes PR23313

llvm-svn: 235519
This commit is contained in:
Reid Kleckner 2015-04-22 16:23:00 +00:00
parent 7ea4cfcf83
commit ec6789bcfa
1 changed files with 1 additions and 1 deletions

View File

@ -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}")