Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build (Ubuntu)
on:
push:
jobs:
build-project:
name: Build Project
runs-on: ubuntu-latest
steps:
- name: Checkout Project
uses: actions/[email protected]

- name: Build Project
uses: threeal/[email protected]
13 changes: 13 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Build (Windows)
on:
push:
jobs:
build-project:
name: Build Project
runs-on: windows-latest
steps:
- name: Checkout Project
uses: actions/[email protected]

- name: Build Project
uses: threeal/[email protected]
15 changes: 15 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
cmake_minimum_required(VERSION 3.2)

project(run-cppcheck)

set(CMAKE_CXX_STANDARD 17)

if (UNIX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -static -static-libgcc -static-libstdc++")
endif (UNIX)

set(SOURCE_FILES main.cpp config.cpp)

add_executable(run-cppcheck main.cpp config.cpp)
install(TARGETS run-cppcheck)

15 changes: 0 additions & 15 deletions Makefile

This file was deleted.

2 changes: 1 addition & 1 deletion config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ std::string Config::command() const

if (!m_projectFilePath.empty()) {

std::string filter = m_filename;
std::string filter = m_filename.string();
if (std::strchr(filter.c_str(), ' '))
filter = "\"" + filter + "\"";

Expand Down