From ab89ae73c7cdabab315c7426f1bf4933febcf8f7 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 26 Oct 2016 13:55:47 -0400 Subject: [PATCH] cmake: include the current directory's ConfigureChecks.cmake The file we want is always in the same directory. The `ConfigureChecks.cmake` file is included in many projects and the wrong `CMAKE_MODULE_PATH` can cause the wrong one to be used here. --- expat/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index e891496b..d2d93c37 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -37,7 +37,7 @@ if(BUILD_tests) enable_testing() endif(BUILD_tests) -include(ConfigureChecks.cmake) +include(${CMAKE_CURRENT_LIST_DIR}/ConfigureChecks.cmake) set(EXTRA_LINK_AND_COMPILE_FLAGS "-fno-strict-aliasing") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${EXTRA_LINK_AND_COMPILE_FLAGS}")