Code Review
/
apps
/
low-level-can-service.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
863dddc
)
examples: cmake_simple: Use auto discovered path
author
Kyle Manna
<kyle@kylemanna.com>
Thu, 15 Oct 2015 20:57:37 +0000
(13:57 -0700)
committer
Kyle Manna
<kyle@kylemanna.com>
Thu, 15 Oct 2015 20:57:37 +0000
(13:57 -0700)
* No need to specify the src path and the module path. Let cmake do it.
examples/cmake_simple/CMakeLists.txt
patch
|
blob
|
history
diff --git
a/examples/cmake_simple/CMakeLists.txt
b/examples/cmake_simple/CMakeLists.txt
index
5edfb61
..
e5f33a0
100644
(file)
--- 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})