Browse Source

Merge pull request #2885 from martin-frbg/ifexists

Improve CMAKE check for conflicting config_kernel.h
tags/v0.3.11^2
Martin Kroeker GitHub 5 years ago
parent
commit
b593e6b650
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions
  1. +1
    -2
      cmake/arch.cmake

+ 1
- 2
cmake/arch.cmake View File

@@ -83,8 +83,7 @@ if (DYNAMIC_ARCH)
endif ()
endif ()

CHECK_INCLUDE_FILE ("${PROJECT_SOURCE_DIR}/config_kernel.h" TRAP)
if (TRAP)
if (EXISTS ${PROJECT_SOURCE_DIR}/config_kernel.h)
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")
endif ()



Loading…
Cancel
Save