From a7e0963508aa7c5ca414ca18e65afc5ad2f23d50 Mon Sep 17 00:00:00 2001 From: Mizux Date: Wed, 23 Sep 2020 09:27:23 +0200 Subject: [PATCH] Fix trailing spaces. (#133) --- CMakeLists.txt | 8 ++++---- README.md | 3 +-- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 85102c7..545f38f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -22,8 +22,8 @@ endif(NOT CMAKE_BUILD_TYPE) option(BUILD_TESTING "Enable test (depends on googletest)." OFF) # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make # it prominent in the GUI. -# cpu_features uses bit-fields which are - to some extends - implementation-defined (see https://en.cppreference.com/w/c/language/bit_field). -# As a consequence it is discouraged to use cpu_features as a shared library because different compilers may interpret the code in different ways. +# cpu_features uses bit-fields which are - to some extends - implementation-defined (see https://en.cppreference.com/w/c/language/bit_field). +# As a consequence it is discouraged to use cpu_features as a shared library because different compilers may interpret the code in different ways. # Prefer static linking from source whenever possible. option(BUILD_SHARED_LIBS "Build library as shared." OFF) # PIC @@ -175,11 +175,11 @@ if(BUILD_TESTING) # Automatically incorporate googletest into the CMake Project if target not # found. enable_language(CXX) - + set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) # prefer use of -std11 instead of -gnustd11 - + if(NOT TARGET gtest OR NOT TARGET gmock_main) # Download and unpack googletest at configure time. configure_file( diff --git a/README.md b/README.md index cbd115a..e22020c 100644 --- a/README.md +++ b/README.md @@ -185,7 +185,7 @@ Please check the [CMake build instructions](cmake/README.md). ### Quickstart with `Ninja` - - build `list_cpu_features` + - build `list_cpu_features` ``` cmake -B/tmp/cpu_features -H. -GNinja -DCMAKE_BUILD_TYPE=Release ninja -C/tmp/cpu_features @@ -197,5 +197,4 @@ Please check the [CMake build instructions](cmake/README.md). cmake -B/tmp/cpu_features -H. -GNinja -DBUILD_TESTING=ON ninja -C/tmp/cpu_features ninja -C/tmp/cpu_features test - ```