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:
parent
0a5c7331ef
commit
60a2cf333b
@ -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>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user