From 250a206c98d8e3992512246e02bf0820ef95578b Mon Sep 17 00:00:00 2001 From: Jose Perez Rodriguez Date: Thu, 21 Apr 2016 08:45:23 -0700 Subject: Adding Versioning to Native components in non-Windows builds. (#4393) Adding Versioning to Native components in non-Windows builds. --- src/CMakeLists.txt | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'src/CMakeLists.txt') diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 323c6f2e4f..70f436c6c3 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -70,7 +70,11 @@ add_custom_target( ) function(add_library_clr) - add_library(${ARGV}) + if(NOT WIN32) + add_library(${ARGV} ${VERSION_FILE_PATH}) + else() + add_library(${ARGV}) + endif(NOT WIN32) add_dependencies(${ARGV0} GeneratedEventingFiles) list(FIND CLR_CROSS_COMPONENTS_LIST ${ARGV0} INDEX) if (DEFINED CLR_CROSS_COMPONENTS_LIST AND ${INDEX} EQUAL -1) @@ -79,7 +83,11 @@ function(add_library_clr) endfunction() function(add_executable_clr) - add_executable(${ARGV}) + if(NOT WIN32) + add_executable(${ARGV} ${VERSION_FILE_PATH}) + else() + add_executable(${ARGV}) + endif(NOT WIN32) add_dependencies(${ARGV0} GeneratedEventingFiles) list(FIND CLR_CROSS_COMPONENTS_LIST ${ARGV0} INDEX) if (DEFINED CLR_CROSS_COMPONENTS_LIST AND ${INDEX} EQUAL -1) -- cgit v1.2.3