You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by mm...@apache.org on 2021/08/18 20:31:42 UTC

[geode-native] branch GEODE-9511-allow-default-sdk-for-ACE created (now 2d459a6)

This is an automated email from the ASF dual-hosted git repository.

mmartell pushed a change to branch GEODE-9511-allow-default-sdk-for-ACE
in repository https://gitbox.apache.org/repos/asf/geode-native.git.


      at 2d459a6  GEODE-9511: Update ACE cmake config for VS2019

This branch includes the following new commits:

     new 2d459a6  GEODE-9511: Update ACE cmake config for VS2019

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[geode-native] 01/01: GEODE-9511: Update ACE cmake config for VS2019

Posted by mm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

mmartell pushed a commit to branch GEODE-9511-allow-default-sdk-for-ACE
in repository https://gitbox.apache.org/repos/asf/geode-native.git

commit 2d459a60355906b3494c08ee805a22628125d109
Author: Mike Martell <mm...@pivotal.io>
AuthorDate: Wed Aug 18 13:30:18 2021 -0700

    GEODE-9511: Update ACE cmake config for VS2019
---
 dependencies/ACE/CMakeLists.txt | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/dependencies/ACE/CMakeLists.txt b/dependencies/ACE/CMakeLists.txt
index dd546e3..ee2c042 100644
--- a/dependencies/ACE/CMakeLists.txt
+++ b/dependencies/ACE/CMakeLists.txt
@@ -79,7 +79,7 @@ if (${WIN32})
   set ( _CONFIGURE_COMMAND ${MPC} -static ${MPC_FLAGS}
                            -name_modifier "*_${MPC_TYPE}_static"
                            -value_template MultiProcessorCompilation=true
-                           -value_template WindowsTargetPlatformVersion=${CMAKE_SYSTEM_VERSION}
+                           -value_template WindowsTargetPlatformVersion=${CMAKE_VS_WINDOWS_TARGET_PLATFORM_VERSION}
                            -value_template staticflags+=__ACE_INLINE__
                            -value_template staticflags+=ACE_BUILD_DLL
                            -value_template staticflags+=ACE_AS_STATIC_LIBS
@@ -89,9 +89,14 @@ if (${WIN32})
   )
   set ( _INSTALL_COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/lib <INSTALL_DIR>/lib
                  COMMAND ${CMAKE_COMMAND} -E copy_directory <SOURCE_DIR>/ace <INSTALL_DIR>/include/ace
-                 COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/ace/Static_$<$<CONFIG:Debug>:Debug>$<$<NOT:$<CONFIG:Debug>>:Release>/ace_${MPC_TYPE}_static/AMD64/ACE_${MPC_TYPE}_static.pdb <INSTALL_DIR>/lib
   )
 
+  if(MSVC_TOOLSET_VERSION LESS 142)
+    set ( _INSTALL_COMMAND ${_INSTALL_COMMAND}
+                   COMMAND ${CMAKE_COMMAND} -E copy <SOURCE_DIR>/ace/Static_$<$<CONFIG:Debug>:Debug>$<$<NOT:$<CONFIG:Debug>>:Release>/ace_${MPC_TYPE}_static/AMD64/ACE_${MPC_TYPE}_static.pdb <INSTALL_DIR>/lib
+    )
+  endif()
+
   set(CMAKE_STATIC_LIBRARY_SUFFIX s$<${MSVC}:$<$<CONFIG:Debug>:d>>.lib)
 
 else()