From 955a077930417295ab8a108156770ac7656b8adc Mon Sep 17 00:00:00 2001 From: "Matthias L. Jugel" Date: Fri, 2 Feb 2018 09:51:14 +0100 Subject: [PATCH] fix #5985 CLion exporter results in cmake build directory, causes compiler to fail in unexpect... --- tools/export/cmake/CMakeLists.txt.tmpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/export/cmake/CMakeLists.txt.tmpl b/tools/export/cmake/CMakeLists.txt.tmpl index 544e1af32e..b3b38ad3d5 100644 --- a/tools/export/cmake/CMakeLists.txt.tmpl +++ b/tools/export/cmake/CMakeLists.txt.tmpl @@ -103,4 +103,7 @@ IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/project.cmake) INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/project.cmake) ELSE() MESSAGE(STATUS "Add a local project.cmake file to add your own targets.") -ENDIF() \ No newline at end of file +ENDIF() + +# this will take care of binary directories generated by cmake/clion not to confuse the cli build +FILE(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/.mbedignore" CONTENT "*")