Skip to content

Commit

Permalink
Fix iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
ruslo committed Nov 1, 2019
1 parent fd2a99d commit 7353635
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions googletest/cmake/internal_utils.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,15 @@ 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
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin"
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}
Expand Down

0 comments on commit 7353635

Please sign in to comment.