Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/dotnet/runtime.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'eng/native/functions.cmake')
-rw-r--r--eng/native/functions.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/eng/native/functions.cmake b/eng/native/functions.cmake
index 1509a17fa59..1bdcf1ddd38 100644
--- a/eng/native/functions.cmake
+++ b/eng/native/functions.cmake
@@ -439,11 +439,11 @@ function(_add_executable)
endfunction()
function(_add_library)
- if(NOT WIN32)
+ if(NOT WIN32 AND "${ARGV1}" STREQUAL "SHARED")
add_library(${ARGV} ${VERSION_FILE_PATH})
else()
add_library(${ARGV})
- endif(NOT WIN32)
+ endif(NOT WIN32 AND "${ARGV1}" STREQUAL "SHARED")
list(FIND CLR_CROSS_COMPONENTS_LIST ${ARGV0} INDEX)
if (DEFINED CLR_CROSS_COMPONENTS_LIST AND ${INDEX} EQUAL -1)
set_target_properties(${ARGV0} PROPERTIES EXCLUDE_FROM_ALL 1)