-
Notifications
You must be signed in to change notification settings - Fork 0
multiple definition of 'main' when trying to build the StockfishServiceTest project #1
Description
When trying to build the test project using the latest Android Studio 2.3.3, the StockfishService sub project compilation fails with the:
StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/arm64-v8a/CMakeFiles/feature_tests.cxx
Error:(405) multiple definition ofmain' StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/feature_tests.c Error:(34) multiple definition ofmain'
StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/armeabi-v7a/CMakeFiles/feature_tests.cxx
Error:(405) multiple definition ofmain' StockfishServiceTest/stockfishservice/.externalNativeBuild/cmake/debug/armeabi/CMakeFiles/feature_tests.cxx Error:(405) multiple definition ofmain'
seems like there are plenty of feature_tests.cxx files generated for various architectures, and they clash with each other. how can this be solved?
CMakeLists.txt includes
file(GLOB_RECURSE engine_SRCS ./*.c*)
which may be the reason why all these files are collected recursively.