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.
This commit is contained in:
Ben Boeckel 2016-10-26 13:55:47 -04:00
parent dc4422e894
commit ab89ae73c7

View file

@ -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}")