Skip to content

Commit 4807232

Browse files
author
Frank Robijn
committed
Make the rabbit even more happy
1 parent 69513f9 commit 4807232

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

CMake/Modules/FindNF_NativeAssemblies.cmake

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ macro(PerformSettingsForInteropEntry interopAssemblyName)
173173
list(REMOVE_DUPLICATES NF_NativeAssemblies_SOURCES)
174174

175175
# add the assembly version to the list
176-
AddNativeAssemblyVersion(interopAssemblyName interopAssemblyNameWithoutDots "${${interopAssemblyName}_SOURCES}")
176+
AddNativeAssemblyVersion("${interopAssemblyName}" "${interopAssemblyNameWithoutDots}" "${${interopAssemblyName}_SOURCES}")
177177
endmacro()
178178

179179
#################################################################
@@ -485,7 +485,10 @@ list(APPEND NF_NativeAssemblies_SOURCES "${CMAKE_CURRENT_BINARY_DIR}/CLR_RT_Inte
485485

486486
# create a .csv file with native assembly versions in the output directory
487487
string(REPLACE ";" "\r\n" NF_NativeAssemblies_CSV "${NF_NativeAssemblies_VERSIONS}")
488-
file(WRITE "${CMAKE_BINARY_DIR}/native_assemblies.csv" "${NF_NativeAssemblies_CSV}")
488+
file(WRITE "${CMAKE_BINARY_DIR}/native_assemblies.csv" "${NF_NativeAssemblies_CSV}" RESULT_VARIABLE WRITE_RESULT)
489+
if(NOT WRITE_RESULT EQUAL 0)
490+
message(WARNING "Failed to write native_assemblies.csv file")
491+
endif()
489492

490493
# output the list of APIs included
491494
list(LENGTH apiListing apiListingLenght)

0 commit comments

Comments
 (0)