Skip to content
Snippets Groups Projects
Commit cb2d420e authored by Soeren Peters's avatar Soeren Peters
Browse files

Merge branch 'feature/updating_googletest' into develop

* feature/updating_googletest:
  Supress gtest rpath warning and remove install option.
parents 6531b4e6 b2d0181c
No related branches found
No related tags found
No related merge requests found
...@@ -10,6 +10,14 @@ endif (POLICY CMP0048) ...@@ -10,6 +10,14 @@ endif (POLICY CMP0048)
project(googletest-distribution) project(googletest-distribution)
set(GOOGLETEST_VERSION 1.10.0) 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") if (CMAKE_VERSION VERSION_LESS "3.1")
add_definitions(-std=c++11) add_definitions(-std=c++11)
else() else()
...@@ -27,7 +35,7 @@ include(GNUInstallDirs) ...@@ -27,7 +35,7 @@ include(GNUInstallDirs)
#Note that googlemock target already builds googletest #Note that googlemock target already builds googletest
#option(BUILD_GMOCK "Builds the googlemock subproject" ON) #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) #if(BUILD_GMOCK)
add_subdirectory( googlemock ) add_subdirectory( googlemock )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment