Skip to content

Commit

Permalink
Merge pull request #121 from maximecharriere/windows/grep
Browse files Browse the repository at this point in the history
Remove dependency on grep in README + Improve findstr command
  • Loading branch information
pomerlef authored Jan 27, 2022
2 parents 6ba32b2 + 9715b4c commit c925c47
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ if(UNIX)
)
elseif(WIN32)
execute_process(
COMMAND findstr "NABO_VERSION " nabo\\nabo.h
COMMAND findstr "/c:NABO_VERSION " [[nabo\nabo.h]]
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
RESULT_VARIABLE GREP_VERSION_RESULT
OUTPUT_VARIABLE PROJECT_VERSION
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ Prerequisites

If your operating system does not provide it, you must get [Eigen], and [Boost] if you want to build the Python bindings.
[Eigen] only needs to be downloaded and extracted.
You also need `grep`, which is available in standard on Linux or Mac OS X, you can get the window version [here](http://gnuwin32.sourceforge.net/packages/grep.htm).

Compilation options
-------------------
Expand Down

0 comments on commit c925c47

Please sign in to comment.