From 69d70d67210c3c1ec0bf6eaf334b3070d4dc266c Mon Sep 17 00:00:00 2001 From: King_DuckZ Date: Fri, 26 Aug 2016 00:12:19 +0200 Subject: [PATCH] Fix cmake file so project can be used as a subproject --- miniupnpc/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/miniupnpc/CMakeLists.txt b/miniupnpc/CMakeLists.txt index 29886f8..f0c9305 100644 --- a/miniupnpc/CMakeLists.txt +++ b/miniupnpc/CMakeLists.txt @@ -66,8 +66,8 @@ if (CMAKE_COMPILER_IS_GNUC) endif (NOT CONFIGURED) endif () -configure_file (${CMAKE_SOURCE_DIR}/miniupnpcstrings.h.cmake ${CMAKE_BINARY_DIR}/miniupnpcstrings.h) -include_directories (${CMAKE_BINARY_DIR}) +configure_file (${CMAKE_CURRENT_SOURCE_DIR}/miniupnpcstrings.h.cmake ${CMAKE_CURRENT_BINARY_DIR}/miniupnpcstrings.h) +include_directories (${CMAKE_CURRENT_BINARY_DIR}) set (MINIUPNPC_SOURCES igd_desc_parse.c