Skip to content

Commit a6cd50e

Browse files
committed
only find argparse if building cuopt_cli
1 parent dbb2c3a commit a6cd50e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

cpp/CMakeLists.txt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -253,16 +253,6 @@ include(${rapids-cmake-dir}/cpm/rapids_logger.cmake)
253253
rapids_cpm_rapids_logger(BUILD_EXPORT_SET cuopt-exports INSTALL_EXPORT_SET cuopt-exports)
254254
create_logger_macros(CUOPT "cuopt::default_logger()" include/cuopt)
255255

256-
rapids_cpm_find(
257-
argparse 3.2.0
258-
GLOBAL_TARGETS argparse::argparse
259-
CPM_ARGS
260-
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
261-
GIT_TAG v3.2
262-
GIT_SHALLOW TRUE
263-
OPTIONS "ARGPARSE_INSTALL TRUE"
264-
)
265-
266256
find_package(CUDSS REQUIRED)
267257

268258
if(BUILD_TESTS)
@@ -494,6 +484,16 @@ endif()
494484

495485

496486
if(NOT BUILD_LP_ONLY)
487+
rapids_cpm_find(
488+
argparse 3.2.0
489+
GLOBAL_TARGETS argparse::argparse
490+
CPM_ARGS
491+
GIT_REPOSITORY https://github.com/p-ranav/argparse.git
492+
GIT_TAG v3.2
493+
GIT_SHALLOW TRUE
494+
OPTIONS "ARGPARSE_INSTALL TRUE"
495+
)
496+
497497
add_executable(cuopt_cli cuopt_cli.cpp)
498498

499499
set_target_properties(cuopt_cli

0 commit comments

Comments
 (0)