Fix/disable argparse install (again)

This commit is contained in:
Mark Roszko 2023-09-15 16:21:50 +00:00
parent 28e16fbdb9
commit ca0b103b54
1 changed files with 6 additions and 0 deletions

View File

@ -26,6 +26,12 @@ set( BUILD_SHARED_LIBS OFF )
# Note: The glew folder isn't added here because it is added inside the main CMakeLists.txt
# If this is not set, then we cannot set things like ARGPARSE_INSTALL to OFF before the
# argparse subdirectory is added. Under the new policy, add_option will allow itself to
# be overridden by a previously-set variable like we want to do here. Doing it this way
# instead of with cmake_policy will apply the change to the third-party CMakeLists files.
set( CMAKE_POLICY_DEFAULT_CMP0077 NEW )
set( ARGPARSE_INSTALL OFF )
add_subdirectory( argparse )
add_subdirectory( clipper )