Skip to content

Commit ebb3924

Browse files
authored
Merge pull request #6001 from ubirch/mbed-os-5985
Corrects intermittent CLion exporter issue with cmake build directory
2 parents 63201db + e321e98 commit ebb3924

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/export/cmake/CMakeLists.txt.tmpl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,4 +103,7 @@ IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/project.cmake)
103103
INCLUDE(${CMAKE_CURRENT_SOURCE_DIR}/project.cmake)
104104
ELSE()
105105
MESSAGE(STATUS "Add a local project.cmake file to add your own targets.")
106-
ENDIF()
106+
ENDIF()
107+
108+
# this will take care of binary directories generated by cmake/clion not to confuse the cli build
109+
FILE(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/.mbedignore" CONTENT "*")

0 commit comments

Comments
 (0)