From 4f76a9c526f44eaa99812c2b7476122c78fa2571 Mon Sep 17 00:00:00 2001 From: Carles Fernandez Date: Fri, 17 Dec 2021 20:00:30 +0100 Subject: [PATCH] Fix cross-compilation in some environments --- src/tests/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/CMakeLists.txt b/src/tests/CMakeLists.txt index daa001b67..0902fb510 100644 --- a/src/tests/CMakeLists.txt +++ b/src/tests/CMakeLists.txt @@ -30,7 +30,7 @@ if(NOT GOOGLETEST_FOUND) "--build" "${CMAKE_BINARY_DIR}/gtest-${GNSSSDR_GTEST_LOCAL_VERSION}" "--config" $<$:Debug>$<$:Release>$<$:RelWithDebInfo>$<$:MinSizeRel>$<$:Debug>$<$:Debug>$<$:RelWithDebInfo>$<$:RelWithDebInfo>$<$:Debug> ) - if(CMAKE_VERSION VERSION_GREATER 3.12) + if(CMAKE_VERSION VERSION_GREATER 3.12 AND NOT CMAKE_CROSSCOMPILING) # Parallel building of gtest causes problems in some environments (e.g. Macports buildings) set(GTEST_BUILD_COMMAND ${GTEST_BUILD_COMMAND} "--parallel 1") endif()