diff --git a/eng/native/functions.cmake b/eng/native/functions.cmake index 35197065da62d..f5b4a44619130 100644 --- a/eng/native/functions.cmake +++ b/eng/native/functions.cmake @@ -398,8 +398,8 @@ function(install_clr) add_dependencies(${INSTALL_CLR_COMPONENT} ${targetName}) endif() get_target_property(targetType ${targetName} TYPE) - if (NOT CLR_CMAKE_KEEP_NATIVE_SYMBOLS AND NOT "${targetType}" STREQUAL "STATIC") - get_symbol_file_name(${targetName} symbol_file) + if (NOT CLR_CMAKE_KEEP_NATIVE_SYMBOLS AND NOT "${targetType}" STREQUAL "STATIC_LIBRARY") + get_symbol_file_name(${targetName} symbolFile) endif() foreach(destination ${destinations}) @@ -407,7 +407,7 @@ function(install_clr) # since they won't be directly linked against. install(PROGRAMS $ DESTINATION ${destination} COMPONENT ${INSTALL_CLR_COMPONENT}) if (NOT "${symbolFile}" STREQUAL "") - install_symbol_file(${symbol_file} ${destination} COMPONENT ${INSTALL_CLR_COMPONENT}) + install_symbol_file(${symbolFile} ${destination} COMPONENT ${INSTALL_CLR_COMPONENT}) endif() if(CLR_CMAKE_PGO_INSTRUMENT)