Skip to content
Snippets Groups Projects
Commit 48aca854 authored by Axel Naumann's avatar Axel Naumann
Browse files

[cmake] Inject CMAKE_OSX_SYSROOT into sub-CMake of googletest.

parent cc7dd991
No related branches found
No related tags found
No related merge requests found
......@@ -1559,6 +1559,10 @@ if (testing)
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_DEBUG:PATH=\\\"\\\"
-DCMAKE_ARCHIVE_OUTPUT_DIRECTORY_RELEASE:PATH=\\\"\\\")
endif()
if(APPLE)
set(EXTRA_GTEST_OPTS
-DCMAKE_OSX_SYSROOT=${CMAKE_OSX_SYSROOT})
endif()
ExternalProject_Add(
googletest
......
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