Skip to content

Commit

Permalink
do not build tests by default
Browse files Browse the repository at this point in the history
  • Loading branch information
bernhardmgruber committed Mar 31, 2022
1 parent 088f0ea commit e6fb989
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -247,13 +247,13 @@ if (Vc_ENABLE_INSTALL)
)
endif()

#Release# option(BUILD_TESTING "Build the testing tree." OFF)
option(BUILD_TESTING "Build the testing tree." OFF)
include (CTest)
configure_file(${PROJECT_SOURCE_DIR}/CTestCustom.cmake ${PROJECT_BINARY_DIR}/CTestCustom.cmake COPYONLY)
if(BUILD_TESTING)
add_custom_target(build_tests ALL VERBATIM)
add_subdirectory(tests)
endif(BUILD_TESTING)
endif()

set(BUILD_EXAMPLES FALSE CACHE BOOL "Build examples.")
if(BUILD_EXAMPLES)
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,25 @@ $ cd build
* Configure with cmake and add relevant options:

```sh
$ cmake -DBUILD_TESTING=OFF ..
$ cmake ..
```

Optionally, specify an installation directory:

```sh
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/Vc -DBUILD_TESTING=OFF ..
$ cmake -DCMAKE_INSTALL_PREFIX=/opt/Vc ..
```

Optionally, include building the unit tests:

```sh
$ cmake -DBUILD_TESTING=ON ..
```

On Windows, if you have multiple versions of Visual Studio installed, you can select one:

```sh
$ cmake -G "Visual Studio 16 2019" -DBUILD_TESTING=OFF ..
$ cmake -G "Visual Studio 16 2019" ..
```

See `cmake --help` for a list of possible generators.
Expand Down
2 changes: 0 additions & 2 deletions makeRelease.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ P
w
EOF

# Don't build tests with make all
sed -i -e 's/#Release# //' CMakeLists.txt
git commit README.md CMakeLists.txt doc/Doxyfile Vc/version.h -s -F- <<EOF
release: version $versionString
Expand Down

0 comments on commit e6fb989

Please sign in to comment.