Skip to content

Commit 161bab8

Browse files
author
Tommy Hinks
committed
misc
1 parent 7b81741 commit 161bab8

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

Diff for: CMakeLists.txt

+2-3
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ add_library(thinks_obj_io INTERFACE)
1212
target_sources(thinks_obj_io INTERFACE ${header_files})
1313
target_include_directories(thinks_obj_io INTERFACE include)
1414

15-
string(TOLOWER "${CMAKE_CURRENT_SOURCE_DIR}" current_source_dir_lower)
16-
string(TOLOWER "${CMAKE_SOURCE_DIR}" source_dir_lower)
17-
if(current_source_dir_lower STREQUAL source_dir_lower)
15+
if($<LOWER_CASE:${CMAKE_CURRENT_SOURCE_DIR}> STREQUAL
16+
$<LOWER_CASE:${CMAKE_SOURCE_DIR}>)
1817
message(STATUS "obj-io: enable testing")
1918
enable_testing()
2019
add_subdirectory(test)

Diff for: README.md

+3-5
Original file line numberDiff line numberDiff line change
@@ -249,13 +249,11 @@ The tests for this distribution are written in the [catch2](https://github.com/c
249249

250250
Running the tests is simple. In a terminal do the following (and similar for `Debug`):
251251
```bash
252-
$ cd d:
253-
$ git clone git@github.com:/thinks/obj-io.git D:/obj-io
254-
$ mkdir build-obj-io
255-
$ cd build-obj-io
252+
$ git clone git@github.com:/thinks/obj-io.git
253+
$ mkdir build && cd build
256254
$ cmake ../obj-io
257255
$ cmake --build . --config Release
258-
$ ctest . -C Release
256+
$ ctest . -C Release --verbose
259257
```
260258
For more detailed test output locate the test executable (_thinks_obj_io_test.exe_) in the build tree and run it directly.
261259

0 commit comments

Comments
 (0)