1
0
mirror of https://github.com/google/cpu_features.git synced 2025-07-01 05:11:15 +02:00

Fix trailing spaces. (#133)

This commit is contained in:
Mizux
2020-09-23 09:27:23 +02:00
committed by GitHub
parent 17ffb65117
commit a7e0963508
2 changed files with 5 additions and 6 deletions

View File

@ -22,8 +22,8 @@ endif(NOT CMAKE_BUILD_TYPE)
option(BUILD_TESTING "Enable test (depends on googletest)." OFF) option(BUILD_TESTING "Enable test (depends on googletest)." OFF)
# BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make # BUILD_SHARED_LIBS is a standard CMake variable, but we declare it here to make
# it prominent in the GUI. # 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). # 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. # 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. # Prefer static linking from source whenever possible.
option(BUILD_SHARED_LIBS "Build library as shared." OFF) option(BUILD_SHARED_LIBS "Build library as shared." OFF)
# PIC # PIC
@ -175,11 +175,11 @@ if(BUILD_TESTING)
# Automatically incorporate googletest into the CMake Project if target not # Automatically incorporate googletest into the CMake Project if target not
# found. # found.
enable_language(CXX) enable_language(CXX)
set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_STANDARD_REQUIRED ON)
set(CMAKE_CXX_EXTENSIONS OFF) # prefer use of -std11 instead of -gnustd11 set(CMAKE_CXX_EXTENSIONS OFF) # prefer use of -std11 instead of -gnustd11
if(NOT TARGET gtest OR NOT TARGET gmock_main) if(NOT TARGET gtest OR NOT TARGET gmock_main)
# Download and unpack googletest at configure time. # Download and unpack googletest at configure time.
configure_file( configure_file(

View File

@ -185,7 +185,7 @@ Please check the [CMake build instructions](cmake/README.md).
<a name="quickstart"></a> <a name="quickstart"></a>
### Quickstart with `Ninja` ### Quickstart with `Ninja`
- build `list_cpu_features` - build `list_cpu_features`
``` ```
cmake -B/tmp/cpu_features -H. -GNinja -DCMAKE_BUILD_TYPE=Release cmake -B/tmp/cpu_features -H. -GNinja -DCMAKE_BUILD_TYPE=Release
ninja -C/tmp/cpu_features 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 cmake -B/tmp/cpu_features -H. -GNinja -DBUILD_TESTING=ON
ninja -C/tmp/cpu_features ninja -C/tmp/cpu_features
ninja -C/tmp/cpu_features test ninja -C/tmp/cpu_features test
``` ```