Skip to content

Commit 955a077

Browse files
thinkbergadbridge
authored andcommitted
fix #5985 CLion exporter results in cmake build directory, causes compiler to fail in unexpect...
1 parent a5cd64e commit 955a077

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)