Skip to content

Commit

Permalink
chore: Make examples using the static library
Browse files Browse the repository at this point in the history
It is annoying to make sure the Argtable3 shared library is properly
installed or in the same directory as the example binaries before
running them.

By making examples using the static library by default, we can make it
easy to run example applications, no matter where they are.
  • Loading branch information
tomghuang committed Jun 6, 2020
1 parent 27df6d7 commit fe70fd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ project(${ARGTABLE3_PROJECT_NAME})
option(ARGTABLE3_ENABLE_CONAN "Enable Conan dependency manager" OFF)
option(ARGTABLE3_ENABLE_TESTS "Enable unit tests" ON)
option(ARGTABLE3_ENABLE_ARG_REX_DEBUG "Enable arg_rex debug output" OFF)
option(ARGTABLE3_BUILD_STATIC_EXAMPLES "Build examples with the static argtable3 library" OFF)
option(ARGTABLE3_BUILD_STATIC_EXAMPLES "Build examples with the static argtable3 library" ON)

get_filename_component(VERSION_TAG_PATH "version.tag" ABSOLUTE)
if(EXISTS ${VERSION_TAG_PATH})
Expand Down

0 comments on commit fe70fd5

Please sign in to comment.