My current challenge is to enable parallelization for an e2e tests suite.
The fun part is that what we test is also based on CMake. So each test will run the cmake configure command.
Before parallelization, all worked adequately, but now I get this error:
59: -- Executing: cmake -S <a-path> -B <a-path> -G Xcode -DCMAKE_BUILD_TYPE=Release
59: -- The CXX compiler identification is AppleClang 14.0.0.14000029
59: -- The OBJCXX compiler identification is unknown
59: -- Detecting CXX compiler ABI info
59: -- Detecting CXX compiler ABI info - done
59: -- Check for working CXX compiler: /Applications/Xcode-14.2.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ - skipped
59: -- Detecting CXX compile features
59: -- Detecting CXX compile features - done
59: CMake Error at CMakeLists.txt:19 (project):
59: No CMAKE_OBJCXX_COMPILER could be found.
Maybe some of this forum audience know about a project that runs parallel tests that use CMake underneath?
I’m not sure what structural arrangement you’re using, but you must not run more than one CMake instance for a given build directory at the same time. Parallel instances in different build directories should be fine though.