diff options
author | Matt Stancliff <matt@genges.com> | 2017-06-15 23:11:13 -0400 |
---|---|---|
committer | Brent Cook <bcook@openbsd.org> | 2017-07-07 00:10:02 -0500 |
commit | 3cf0bc1226d2f7c14c7fa82ee8fd1626963bac10 (patch) | |
tree | 0a2fae3b92d4f2c4eb136cbb3c6511d26624fffe | |
parent | f3e7ad5b06fcd8b1b522d4a15747f10bc7dc3155 (diff) | |
download | portable-3cf0bc1226d2f7c14c7fa82ee8fd1626963bac10.tar.gz portable-3cf0bc1226d2f7c14c7fa82ee8fd1626963bac10.tar.bz2 portable-3cf0bc1226d2f7c14c7fa82ee8fd1626963bac10.zip |
Fix CMake module include path
Need to search the current directory, not the overall project root directory
if this is being included as a sub-dependency of another project.
-rw-r--r-- | CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 94e4d0b..570e0ef 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt | |||
@@ -4,7 +4,7 @@ include(CheckLibraryExists) | |||
4 | include(CheckIncludeFiles) | 4 | include(CheckIncludeFiles) |
5 | include(CheckTypeSize) | 5 | include(CheckTypeSize) |
6 | 6 | ||
7 | set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}" ${CMAKE_MODULE_PATH}) | 7 | set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${CMAKE_MODULE_PATH}) |
8 | include(cmake_export_symbol) | 8 | include(cmake_export_symbol) |
9 | 9 | ||
10 | project (LibreSSL C) | 10 | project (LibreSSL C) |