diff --git a/3rdParty/googletest/CMakeLists.txt b/3rdParty/googletest/CMakeLists.txt index 3c0d240b89c03adc95b010309057bb4efde05939..acc5fb1ed8d37bcc89e9e60aceb28c7400e7cfca 100644 --- a/3rdParty/googletest/CMakeLists.txt +++ b/3rdParty/googletest/CMakeLists.txt @@ -10,6 +10,14 @@ endif (POLICY CMP0048) project(googletest-distribution) set(GOOGLETEST_VERSION 1.10.0) +########################################################## +# Enable MACOSX_RPATH support for gtest and gmock +# to avoid CMP0042 warnings +IF(APPLE) + SET(CMAKE_MACOSX_RPATH 1) +ENDIF() +########################################################## + if (CMAKE_VERSION VERSION_LESS "3.1") add_definitions(-std=c++11) else() @@ -27,7 +35,7 @@ include(GNUInstallDirs) #Note that googlemock target already builds googletest #option(BUILD_GMOCK "Builds the googlemock subproject" ON) -option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" OFF) +#option(INSTALL_GTEST "Enable installation of googletest. (Projects embedding googletest may want to turn this OFF.)" OFF) #if(BUILD_GMOCK) add_subdirectory( googlemock )