Skip to content
Snippets Groups Projects
Commit f141e915 authored by Pospelov, Gennady's avatar Pospelov, Gennady
Browse files

Removes CMake warning about missed rpath on MacOS for libgtest.so

parent 933877cf
No related branches found
No related tags found
No related merge requests found
...@@ -9,5 +9,11 @@ if(MSVC) ...@@ -9,5 +9,11 @@ if(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_VARIADIC_MAX=10 /wd4100 /wd4275") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_VARIADIC_MAX=10 /wd4100 /wd4275")
endif() endif()
# instructs CMake to consider libgtest.so as our project library (inspite of the fact, that
# it is not installed) and to provide @rpath instead of hardcoded links.
if(APPLE)
set(CMAKE_MACOSX_RPATH 1)
endif()
option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." ON) option(BUILD_SHARED_LIBS "Build shared libraries (DLLs)." ON)
add_subdirectory(gtest-1.8.0) add_subdirectory(gtest-1.8.0)
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