Emit SCCS ID in singlefilehost (#51835)
authorAdeel Mujahid <3840695+am11@users.noreply.github.com>
Thu, 29 Apr 2021 12:49:40 +0000 (15:49 +0300)
committerGitHub <noreply@github.com>
Thu, 29 Apr 2021 12:49:40 +0000 (14:49 +0200)
src/native/corehost/common.cmake

index e54e47e..eb5faa6 100644 (file)
@@ -15,12 +15,12 @@ include_directories(${CMAKE_CURRENT_LIST_DIR}/../)
 include_directories(${CMAKE_CURRENT_LIST_DIR}/hostmisc)
 
 set(RESOURCES)
-if (NOT SKIP_VERSIONING)
-    if(CLR_CMAKE_TARGET_WIN32)
+if (CLR_CMAKE_TARGET_WIN32)
+    if (NOT SKIP_VERSIONING)
         list(APPEND RESOURCES ${CMAKE_CURRENT_LIST_DIR}/native.rc)
-    else()
-        list(APPEND SOURCES ${VERSION_FILE_PATH})
     endif()
+else()
+    list(APPEND SOURCES ${VERSION_FILE_PATH})
 endif()
 
 if(CLR_CMAKE_TARGET_WIN32)