Merge pull request #20 from Bnmann/dev-bnmann-fix-cmake-export

Fix invalid cmake export configuration
This commit is contained in:
Pranav Srinivas Kumar 2019-05-25 07:37:11 -04:00 committed by GitHub
commit b95765f53d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ add_library(argparse::argparse ALIAS argparse)
target_compile_features(argparse INTERFACE cxx_std_17) target_compile_features(argparse INTERFACE cxx_std_17)
target_include_directories(argparse INTERFACE target_include_directories(argparse INTERFACE
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}> $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>/include) $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>)
if(ARGPARSE_BUILD_TESTS) if(ARGPARSE_BUILD_TESTS)
add_subdirectory(test) add_subdirectory(test)