Skip to content

Commit

Permalink
fix: windows Ninja same target name
Browse files Browse the repository at this point in the history
  • Loading branch information
BedRockJie committed Jul 13, 2024
1 parent ccb8d24 commit aa0be42
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 aa0be42

Please sign in to comment.