summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2017-08-22 11:00:49 +0200
committerAndreas Schneider <asn@cryptomilk.org>2017-08-22 11:00:49 +0200
commitf583e196b9c432b621f548655551ecbff9afe624 (patch)
tree7edafe31ccd5bb59f23ab7d94f9093ea1eb4b13c /CMakeLists.txt
parent21425768cf6d473da0f0e763119f7bcf4ddb4978 (diff)
downloadcmocka-f583e196b9c432b621f548655551ecbff9afe624.zip
cmocka-f583e196b9c432b621f548655551ecbff9afe624.tar.gz
cmocka-f583e196b9c432b621f548655551ecbff9afe624.tar.bz2
cmake: Allow to use cmocka as a sub project
Thanks to Kristian Theilgaard for the initial fixes.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index ac224ff..39b9ec8 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@ set(LIBRARY_SOVERSION "0")
# where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is checked
set(CMAKE_MODULE_PATH
- ${CMAKE_SOURCE_DIR}/cmake/Modules
+ ${CMAKE_CURRENT_SOURCE_DIR}/cmake/Modules
)
# add definitions