Skip to content

Commit

Permalink
Merge pull request #68 from BedRockJie/master
Browse files Browse the repository at this point in the history
fix: windows Ninja same target name
  • Loading branch information
cofyc-bot authored Jul 15, 2024
2 parents ccb8d24 + aa0be42 commit 682d452
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,8 @@ if(ARGPARSE_SHARED)
set_target_properties(argparse_shared PROPERTIES OUTPUT_NAME argparse)
endif()
if(ARGPARSE_STATIC)
add_library(argparse STATIC ${sources})
target_include_directories(argparse PUBLIC .)
endif()
if(NOT (ARGPARSE_STATIC OR ARGPARSE_SHARED))
add_library(argparse OBJECT ${sources})
add_library(argparse_static STATIC ${sources})
target_include_directories(argparse_static PUBLIC .)
set_target_properties(argparse_static PROPERTIES OUTPUT_NAME argparse_static)
endif()

0 comments on commit 682d452

Please sign in to comment.