Skip to content

Commit c3a85ed

Browse files
committed
cmake compile errors
1 parent 822ba7f commit c3a85ed

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ else()
2525
file(GLOB_RECURSE SRC_LIST_CPP CONFIGURE_DEPENDS "${PROJECT_SOURCE_DIR}/src/*.cpp" )
2626

2727
# define libraries
28-
add_library (audio_driver ${SRC_LIST_C} ${GLOB_RECURSE SRC_LIST_CPP})
28+
add_library (audio_driver ${SRC_LIST_C} ${SRC_LIST_CPP})
2929

3030
# prevent compile errors
3131
target_compile_options(audio_driver PRIVATE -DUSE_DEFAULT_STDLIB)
3232

3333
# define location for header files
34-
target_include_directories(audio_driver PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_SOURCE_DIR}/src/libhelix-mp3 ${CMAKE_CURRENT_SOURCE_DIR}/src/libhelix-aac )
34+
target_include_directories(audio_driver PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src )
3535

3636
endif()

src/Driver/ad1938/ad1938.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
2323
* THE SOFTWARE.
2424
*/
25+
#ifdef ARDUINO
2526

2627
#include "ad1938.h"
2728

@@ -774,3 +775,4 @@ bool AD1938::setMuteADC(bool mute) {
774775
}
775776

776777

778+
#endif

src/Driver/es8311/es8311.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
*/
2424

2525
#include <string.h>
26+
#include <assert.h>
2627
#include "es8311.h"
2728

28-
2929
#ifndef BIT
3030
#define BIT(nr) (1 << (nr))
3131
#endif

0 commit comments

Comments
 (0)