Change default compiler from g++ to g++ -x c++
the build was successful Details

g++ guesses the language from file extensions. -x c++ forces the
language to C++, so you don't need file extensions on your scripts.
This commit is contained in:
tastytea 2019-02-09 00:20:05 +01:00
parent cf5f9bcca0
commit 9eb18e0c95
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
3 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project(compilescript
VERSION 0.3.4
VERSION 0.3.5
LANGUAGES CXX
)

View File

@ -61,7 +61,7 @@ int main(int argc, char *argv[])
[source,conf]
----
compiler = "g++";
compiler = "g++ -x c++";
clean_after_hours = 720;
cache_dir = "/home/user/.cache/compilescript";
----

View File

@ -42,7 +42,7 @@ using std::chrono::system_clock;
using std::chrono::hours;
using std::chrono::duration_cast;
string compiler = "g++";
string compiler = "g++ -x c++";
fs::path cache_dir;
int clean_after_hours = 30 * 24;