Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMakeLists.txt: add BUILD_TESTS option #26

Closed
wants to merge 1 commit into from
Closed

CMakeLists.txt: add BUILD_TESTS option #26

wants to merge 1 commit into from

Commits on Jun 7, 2020

  1. CMakeLists.txt: add BUILD_TESTS option

    Add an option to enable or disable tests. This will allow the user to
    build c-periphery without threads and will avoid the following build
    failure:
    
    [ 68%] Building C object CMakeFiles/test_serial.dir/tests/test_serial.c.o
    /data/buildroot/buildroot-test/instance-0/output/build/c-periphery-2.2.1/tests/test_gpio_sysfs.c:13:10: fatal error: pthread.h: No such file or directory
     #include <pthread.h>
              ^~~~~~~~~~~
    
    Fixes:
     - http://autobuild.buildroot.org/results/6bbc4de3f857dcb7ff5e6f9fa1441ba4e0af1338
    
    Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
    ffontaine committed Jun 7, 2020
    Configuration menu
    Copy the full SHA
    7b3f137 View commit details
    Browse the repository at this point in the history