mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +00:00
Fix invalid cmake export configuration
Modify the CMakeLists.txt file to properly generate config file. The `/include` string part intended for BUILD_INTERFACE was added after the generator expression itself, which resulted in extra `/include` path INTERFACE_INCLUDE_DIRECTORIES property of exported configuration.
This commit is contained in:
parent
7c5ee10205
commit
3b5d4725f6
@ -10,7 +10,7 @@ add_library(argparse::argparse ALIAS argparse)
|
||||
target_compile_features(argparse INTERFACE cxx_std_17)
|
||||
target_include_directories(argparse INTERFACE
|
||||
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>/include)
|
||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}/include>)
|
||||
|
||||
if(ARGPARSE_BUILD_TESTS)
|
||||
add_subdirectory(test)
|
||||
|
Loading…
Reference in New Issue
Block a user