Commit 509d1a7f authored by AnastasiaKazantaeva's avatar AnastasiaKazantaeva Committed by Scott Cyphers

Fix for windows ninja (#3917)

* Fix for windows ninja

* Fix for centos build

* Remove fix for centosa
parent 2a75c961
......@@ -43,6 +43,17 @@ else()
set(GTEST_CXX_FLAGS ${CMAKE_CXX_FLAGS})
endif()
#Build for ninja
if(UNIX)
SET(GTEST_PATHS ${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/gtest/libgtest.a
${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/libgmock.a)
else()
SET(GTEST_PATHS ${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/gtest/gtest.lib
${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/gtest/gmock.lib
${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/gtest/gtestd.lib
${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/gtest/gmockd.lib)
endif()
ExternalProject_Add(
ext_gtest
PREFIX gtest
......@@ -60,8 +71,7 @@ ExternalProject_Add(
${GTEST_CMAKE_ARGS}
BINARY_DIR "${EXTERNAL_PROJECTS_ROOT}/gtest/build"
EXCLUDE_FROM_ALL TRUE
BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/gtest/libgtest.a
BUILD_BYPRODUCTS ${CMAKE_BINARY_DIR}/ngraph/gtest/build/googlemock/libgmock.a
BUILD_BYPRODUCTS ${GTEST_PATHS}
)
#------------------------------------------------------------------------------
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment