From 151c72382b131aa5b03aa194bae4f1295a8a79b0 Mon Sep 17 00:00:00 2001 From: Mario Badr Date: Tue, 29 Nov 2016 12:54:38 -0500 Subject: [PATCH] Use current source directory for target sources --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 62fc14e..def2076 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -51,7 +51,7 @@ endif() add_library(cxxopts INTERFACE) target_sources( cxxopts INTERFACE - ${CMAKE_SOURCE_DIR}/include/cxxopts/cxxopts.hpp + ${CMAKE_CURRENT_SOURCE_DIR}/include/cxxopts/cxxopts.hpp ) target_include_directories( cxxopts INTERFACE