Skip to content
Snippets Groups Projects
Commit ddb79265 authored by Daniel Hornung's avatar Daniel Hornung
Browse files

ENH: cmake option -D SKIP_LINTING=ON also affects auto-format now.

parent a12c9ac6
No related branches found
No related tags found
1 merge request!12F consolidation
Pipeline #12186 passed
Pipeline: caosdb-cppinttest

#12187

    ......@@ -412,7 +412,7 @@ install(FILES ${PROJECT_SOURCE_DIR}/caosdbConfigVersion.cmake
    ### code formatting with clang-format
    #######################################################
    option(AUTOFORMATTING "call clang-format at configure time" ON)
    if(AUTOFORMATTING)
    if(AUTOFORMATTING AND NOT SKIP_LINTING)
    file(GLOB format_test_sources test/*.cpp test/*.h test/*.h.in)
    execute_process(COMMAND clang-format -i --verbose ${libcaosdb_INCL}
    ${libcaosdb_SRC} ${libcaosdb_TEST_SRC}
    ......
    0% Loading or .
    You are about to add 0 people to the discussion. Proceed with caution.
    Finish editing this message first!
    Please register or to comment