From ae8ec89cdea8c59fd0dd2adeded6cddfa3b1bca8 Mon Sep 17 00:00:00 2001 From: 2bndy5 <2bndy5@gmail.com> Date: Wed, 11 Aug 2021 04:44:28 -0700 Subject: [PATCH] fix problem in last commit --- CMakeLists.txt | 2 +- cmake/GetLibInfo.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 27e45df7..156e7732 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -15,7 +15,7 @@ cmake_minimum_required(VERSION 3.15) # Set the project name to your project name project(RF24Network C CXX) include(${CMAKE_CURRENT_LIST_DIR}/cmake/StandardProjectSettings.cmake) -if(not "${CMAKE_CURRENT_LIST_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") +if(NOT "${CMAKE_CURRENT_LIST_DIR}" STREQUAL "${CMAKE_CURRENT_SOURCE_DIR}") # python wrapper builds in source, but not in submodules' source include(${CMAKE_CURRENT_LIST_DIR}/cmake/PreventInSourceBuilds.cmake) endif() diff --git a/cmake/GetLibInfo.cmake b/cmake/GetLibInfo.cmake index 1a9d9e44..ae0e40da 100644 --- a/cmake/GetLibInfo.cmake +++ b/cmake/GetLibInfo.cmake @@ -1,5 +1,5 @@ # get lib info from the maintained library.properties required by the Arduino IDE -file(STRINGS ${CMAKE_CURRENT_LIST_DIR}/library.properties LibInfo) +file(STRINGS ${CMAKE_CURRENT_LIST_DIR}/../library.properties LibInfo) foreach(line ${LibInfo}) string(FIND ${line} "=" label_delimiter) if(${label_delimiter} GREATER 0)