From f01b2c0e27f9ab3f975531653c97ab6348de6072 Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Wed, 2 Nov 2016 08:11:07 -0400 Subject: [PATCH] cmake: use the current binary directory This is not necessarily the top-level CMake directory (such as when expat is included inside of another project's source tree directly), so we should instead use the one relative to this `CMakeLists.txt` file. --- expat/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index d2d93c37..679290d6 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -45,7 +45,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_LINK_AND_COMPILE_FLAGS}") set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} ${EXTRA_LINK_AND_COMPILE_FLAGS}") set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} ${EXTRA_LINK_AND_COMPILE_FLAGS}") -include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/lib) +include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/lib) if(MSVC) add_definitions(-D_CRT_SECURE_NO_WARNINGS -wd4996) endif(MSVC) -- 2.40.0