Set *current* CMake source dir as include dir
Allows this project to be used in a third_party subdirectory of another
CMake project.
Change-Id: Ie5232d4ae49a08663fffd78c80c76d89fa9e89a1
Reviewed-on: https://code-review.googlesource.com/11594
Reviewed-by: Paul Wankadia <junyer@google.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0afdbc7..23e3a2b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -39,7 +39,7 @@
list(APPEND EXTRA_TARGET_LINK_LIBRARIES pcre)
endif()
-include_directories(${CMAKE_SOURCE_DIR})
+include_directories(${CMAKE_CURRENT_SOURCE_DIR})
set(RE2_SOURCES
re2/bitstate.cc