clibs / cmocka

An elegant unit testing framework for C with support for mock objects.
Apache License 2.0
227 stars 55 forks source link

build error on linux #13

Closed Airjeerawat closed 2 years ago

Airjeerawat commented 5 years ago

cmake -DUNIT_TESTING=On ../cmocka-1.1.1 CMake Error at cmake/Modules/MacroEnsureOutOfSourceBuild.cmake:13 (message): cmocka requires an out of source build. Please create a separate build directory and run 'cmake /path/to/cmocka [options]' there. Call Stack (most recent call first): CMakeLists.txt:41 (macro_ensure_out_of_source_build)

CMake Error at cmake/Modules/MacroEnsureOutOfSourceBuild.cmake:14 (message): Remove the file CMakeCache.txt in /home/dnewbrk/dev/jrl/cmocka-1.1.1 first. Call Stack (most recent call first): CMakeLists.txt:41 (macro_ensure_out_of_source_build)

-- Configuring incomplete, errors occurred! See also "/home/.../dev/.../cmocka-1.1.1/CMakeFiles/CMakeOutput.log".

DEVoytas commented 5 years ago

Hi @Airjeerawat this is just mirror repo that has not been synced for a few years. Try the original: https://git.cryptomilk.org/projects/cmocka.git/ instead. For details go to https://cmocka.org/.