aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Stancliff <matt@genges.com>2017-06-15 23:11:13 -0400
committerBrent Cook <bcook@openbsd.org>2017-07-07 00:10:02 -0500
commit3cf0bc1226d2f7c14c7fa82ee8fd1626963bac10 (patch)
tree0a2fae3b92d4f2c4eb136cbb3c6511d26624fffe
parentf3e7ad5b06fcd8b1b522d4a15747f10bc7dc3155 (diff)
downloadportable-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.txt2
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)
4include(CheckIncludeFiles) 4include(CheckIncludeFiles)
5include(CheckTypeSize) 5include(CheckTypeSize)
6 6
7set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}" ${CMAKE_MODULE_PATH}) 7set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" ${CMAKE_MODULE_PATH})
8include(cmake_export_symbol) 8include(cmake_export_symbol)
9 9
10project (LibreSSL C) 10project (LibreSSL C)