Skip to content

Commit

Permalink
Incorrect capitalization. Thanks macos.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mayeul d'Avezac committed Feb 3, 2017
1 parent 776af31 commit 63796fc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/FindCatch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ endif()
find_path(CATCH_INCLUDE_DIR catch.hpp PATHS ${EXTERNAL_ROOT}/include)
if(CATCH_INCLUDE_DIR)
file(
STRINGS ${CATCH_INCLUDE_DIR}/Catch.hpp
STRINGS ${CATCH_INCLUDE_DIR}/catch.hpp
CATCH_VERSION_STRING
REGEX "[ ]+Catch[ ]+v([0-9]*\\.[0-9]*\\.[0-9]*)"
)
)
string(
REGEX REPLACE
".*[ ]+Catch[ ]+v([0-9]*\\.[0-9]*\\.[0-9]*)"
"\\1"
CATCH_VERSION_STRING
"${CATCH_VERSION_STRING}"
)
)
endif()

set(CATCH_INCLUDE_DIRS ${CATCH_INCLUDE_DIR} )
Expand Down

0 comments on commit 63796fc

Please sign in to comment.