Skip to content

Commit 9ed0f4d

Browse files
committed
Change to not build tests at default in CMakeLists.txt
1 parent 9e9eec6 commit 9ed0f4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,6 @@ script:
156156
- export CXX=${COMPILER}
157157
- JOBS=2 # Travis machines have 2 cores.
158158
- mkdir build && cd build
159-
- cmake -G "Unix Makefiles" ..
159+
- cmake -G "Unix Makefiles" -DSTRINGVIEW_LITE_OPT_BUILD_TESTS=ON -DSTRINGVIEW_LITE_OPT_BUILD_EXAMPLES=OFF ..
160160
- cmake --build . -- -j${JOBS}
161161
- ctest --output-on-failure -j${JOBS}

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ set( string_view_lite_version "1.0.0" )
1111

1212
# Enable building and performing of tests and building of examples:
1313

14-
option( STRINGVIEW_LITE_OPT_BUILD_TESTS "Build and perform string-view-lite tests" ON )
14+
option( STRINGVIEW_LITE_OPT_BUILD_TESTS "Build and perform string-view-lite tests" OFF )
1515
option( STRINGVIEW_LITE_OPT_BUILD_EXAMPLES "Build string-view-lite examples" OFF )
1616

1717
option( STRINGVIEW_LITE_OPT_SELECT_STDSV "Select std::string_view" OFF )
@@ -37,7 +37,7 @@ target_include_directories(
3737

3838
# Installation:
3939

40-
install(
40+
install(
4141
DIRECTORY ${CMAKE_SOURCE_DIR}/include/ DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} )
4242

4343
# If requested, build and perform tests, build examples:

0 commit comments

Comments
 (0)