Skip to content
Browse files

Minor cleanup

  • Loading branch information...
1 parent dbd09c5 commit 0ce9a17c763bd5888b26153689a03afe00d95651 @queezythegreat queezythegreat committed Apr 12, 2012
Showing with 2 additions and 2 deletions.
  1. +0 −1 CMakeLists.txt
  2. +2 −1 cmake/modules/ArduinoToolchain.cmake
View
1 CMakeLists.txt
@@ -13,6 +13,5 @@ cmake_minimum_required(VERSION 2.8)
# Setup Project #
#====================================================================#
project(ArduinoExample C CXX)
-#find_package(Arduino 1.0 REQUIRED)
add_subdirectory(example) # Add example directory to build
View
3 cmake/modules/ArduinoToolchain.cmake
@@ -3,6 +3,7 @@ set(CMAKE_SYSTEM_NAME Arduino)
set(CMAKE_C_COMPILER avr-gcc)
set(CMAKE_CXX_COMPILER avr-g++)
+# Add current directory to CMake Module path automatically
if(EXISTS ${CMAKE_CURRENT_LIST_DIR}/Platform/Arduino.cmake)
- set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}) # CMake module search path
+ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR})
endif()

0 comments on commit 0ce9a17

Please sign in to comment.
Something went wrong with that request. Please try again.