aboutsummaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2017-05-19 14:18:56 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2017-05-19 14:20:12 +0200
commitc6315b89558170864a04e9b56bcde72f4902d4ca (patch)
tree5ab215cae2066bc1265bff602e31144c5e37e826 /cmake
parentae75ed3ca53a51b11b012f4024be6e2d1da93323 (diff)
Fix project LIBDIR and RESOURCES paths.
Change-Id: I36c4139e53266938285f8a275bf38243cd10907e Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/macros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/macros.cmake b/cmake/macros.cmake
index 42b7dd4..ba771d6 100644
--- a/cmake/macros.cmake
+++ b/cmake/macros.cmake
@@ -230,8 +230,8 @@ set(CMP0048 1)
# Include project configuration
# ------------------------------
project(${PROJECT_NAME} VERSION ${PROJECT_VERSION} LANGUAGES ${PROJECT_LANGUAGES})
-set(PROJECT_LIBDIR "libs" CACHE PATH "Subpath to libraries")
-set(PROJECT_RESOURCES "data" CACHE PATH "Subpath to data")
+set(PROJECT_LIBDIR "${CMAKE_SOURCE_DIR}/libs" CACHE PATH "Subpath to libraries")
+set(PROJECT_RESOURCES "${CMAKE_SOURCE_DIR}/data" CACHE PATH "Subpath to data")
INCLUDE(FindPkgConfig)
INCLUDE(CheckIncludeFiles)