removed target_sources from interface library

Adding target_sources to interface libraries and exporting them is
not supported in CMake 3.1 and 3.2. Furthermore, since it is a header,
it is not needed at all.
This commit is contained in:
Mario Werner 2017-06-19 16:41:37 +02:00
parent 0a5c7331ef
commit 60a2cf333b

View File

@ -49,10 +49,6 @@ if(CXXOPTS_USE_UNICODE_HELP)
target_compile_definitions(cxxopts INTERFACE CXXOPTS_USE_UNICODE)
endif()
target_sources(cxxopts INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include/cxxopts.hpp>
$<INSTALL_INTERFACE:include/cxxopts.hpp>
)
target_include_directories(cxxopts INTERFACE
$<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>