From bc02a80705608c86eda12353f529e5a7a033a9f2 Mon Sep 17 00:00:00 2001 From: Dmitry Ilyin Date: Sat, 27 Feb 2021 12:51:28 +0300 Subject: [PATCH] Fix paths --- CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab5b2d9..612f9c7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -19,14 +19,11 @@ set(SOURCES mxml-set.c mxml-string.c) -set(HEADERS mxml-private.h) - configure_file(config.h.in config.h) +set(HEADERS mxml-private.h ${CMAKE_CURRENT_BINARY_DIR}/config.h) add_library(${PROJECT_NAME} ${SOURCES} ${HEADERS}) -target_include_directories( - ${PROJECT_NAME} PUBLIC $ - $) +target_include_directories(${PROJECT_NAME} PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}) add_library(MSweet::${PROJECT_NAME} ALIAS ${PROJECT_NAME}) # install library