From 7353635b1ee67f9871e4e09d1cde0c3f37fba1b6 Mon Sep 17 00:00:00 2001 From: Ruslan Baratov Date: Sat, 2 Nov 2019 00:32:33 +0300 Subject: [PATCH] Fix iOS --- googletest/cmake/internal_utils.cmake | 2 ++ 1 file changed, 2 insertions(+) diff --git a/googletest/cmake/internal_utils.cmake b/googletest/cmake/internal_utils.cmake index 57229c2820..69335e90fe 100644 --- a/googletest/cmake/internal_utils.cmake +++ b/googletest/cmake/internal_utils.cmake @@ -155,6 +155,7 @@ function(cxx_library_with_type name type cxx_flags) set_target_properties(${name} PROPERTIES DEBUG_POSTFIX "d") + if(NOT IOS) # Fix multiarch build # Set the output directory for build artifacts set_target_properties(${name} PROPERTIES @@ -162,6 +163,7 @@ function(cxx_library_with_type name type cxx_flags) LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/lib" PDB_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") + endif() # make PDBs match library name get_target_property(pdb_debug_postfix ${name} DEBUG_POSTFIX) set_target_properties(${name}