Skip to content

Commit 9d43140

Browse files
authored
Improve check for conflicting config_kernel.h
1 parent 8ef600f commit 9d43140

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cmake/arch.cmake

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,7 @@ if (DYNAMIC_ARCH)
8383
endif ()
8484
endif ()
8585

86-
CHECK_INCLUDE_FILE ("${PROJECT_SOURCE_DIR}/config_kernel.h" TRAP)
87-
if (TRAP)
86+
if (EXISTS ${PROJECT_SOURCE_DIR}/config_kernel.h)
8887
message (FATAL_ERROR "Your build directory contains a file config_kernel.h, probably from a previous compilation with make. This will conflict with the cmake compilation and cause strange compiler errors - please remove the file before trying again")
8988
endif ()
9089

0 commit comments

Comments
 (0)