diff --git a/.travis.yml b/.travis.yml index 3b9136a3..47ccaf3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -21,7 +21,7 @@ script: - CTEST_OUTPUT_ON_FAILURE=1 make test - cd .. && rm -rf build/ # Building with biicode - - ./biicode/support/travis-build.sh + - biicode/support/travis-build.sh after_failure: diff --git a/CMakeLists.txt b/CMakeLists.txt index bf3de718..e135949d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -61,10 +61,10 @@ if (CPP11_FLAG) set(CMAKE_REQUIRED_FLAGS ${CPP11_FLAG}) endif () -if(BIICODE) +if (BIICODE) include(biicode/cmake/biicode.cmake) return() -endif(BIICODE) +endif () add_library(format ${FMT_SOURCES}) if (CMAKE_COMPILER_IS_GNUCXX) diff --git a/biicode/samples/basic.cpp b/biicode/samples/basic.cc similarity index 61% rename from biicode/samples/basic.cpp rename to biicode/samples/basic.cc index 727ed013..0fbb1db9 100644 --- a/biicode/samples/basic.cpp +++ b/biicode/samples/basic.cc @@ -11,8 +11,7 @@ class Date { }; int main(int argc, char *argv[]){ - std::string s = fmt::format("The date is {}", Date(2012, 12, 9)); - fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax - fmt::printf("\n%s", s); // uses printf format string syntax - return 0; + std::string s = fmt::format("The date is {}", Date(2012, 12, 9)); + fmt::print("Hello, {}!", "world"); // uses Python-like format string syntax + fmt::printf("\n%s", s); // uses printf format string syntax }