summaryrefslogtreecommitdiffstats
path: root/examples/cmake_simple
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@github.mail.kapsi.fi>2015-10-17 10:19:40 +0300
committerPetteri Aimonen <jpa@github.mail.kapsi.fi>2015-10-17 10:19:40 +0300
commitf8ac463766281625ad710900479130c7fcb4d63b (patch)
tree08caaacdf90fa2c5af8a79e109e682ad64921a6f /examples/cmake_simple
parent8fdbc8d6889e4f303724bbe26025eadbf5eceddd (diff)
parent6cedf928c81885ea9cc5f4e0bed2679384427435 (diff)
Merge pull request #181 from kylemanna/cmake
Cmake updates
Diffstat (limited to 'examples/cmake_simple')
-rw-r--r--examples/cmake_simple/CMakeLists.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/cmake_simple/CMakeLists.txt b/examples/cmake_simple/CMakeLists.txt
index 5edfb61f..e5f33a02 100644
--- a/examples/cmake_simple/CMakeLists.txt
+++ b/examples/cmake_simple/CMakeLists.txt
@@ -1,8 +1,7 @@
cmake_minimum_required(VERSION 2.8)
project(NANOPB_CMAKE_SIMPLE C)
-set(NANOPB_SRC_ROOT_FOLDER ${CMAKE_CURRENT_SOURCE_DIR}/../..)
-set(CMAKE_MODULE_PATH ${NANOPB_SRC_ROOT_FOLDER}/extra)
+set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../../extra)
find_package(Nanopb REQUIRED)
include_directories(${NANOPB_INCLUDE_DIRS})