From: Kyle Manna Date: Thu, 15 Oct 2015 20:57:37 +0000 (-0700) Subject: examples: cmake_simple: Use auto discovered path X-Git-Tag: 5.0.2~186^2~101^2 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=6cedf928c81885ea9cc5f4e0bed2679384427435;p=apps%2Fagl-service-can-low-level.git examples: cmake_simple: Use auto discovered path * No need to specify the src path and the module path. Let cmake do it. --- 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})