Skip to content

Commit

Permalink
Merge pull request #75 from stephenswat/feat/build_use_system_libs
Browse files Browse the repository at this point in the history
Allow use of system libraries by default
  • Loading branch information
beomki-yeo authored Sep 30, 2022
2 parents 1ad2cb7 + 7b102eb commit 03e0145
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ set( CMAKE_SYCL_STANDARD 17 CACHE STRING "The (SYCL) C++ standard to use" )
# Standard CMake include(s).
include( GNUInstallDirs )

# Flags controlling the meta-build system.
option( ALGEBRA_PLUGINS_USE_SYSTEM_LIBS "Use system libraries be default" FALSE )

# Explicitly set the output directory for the binaries. Such that if this
# project is included by another project, the main project's configuration would
# win out.
Expand Down Expand Up @@ -61,7 +64,7 @@ option( ALGEBRA_PLUGINS_SETUP_VECMEM
"Set up the VecMem target(s) explicitly" TRUE )
option( ALGEBRA_PLUGINS_USE_SYSTEM_VECMEM
"Pick up an existing installation of VecMem from the build environment"
FALSE )
${ALGEBRA_PLUGINS_USE_SYSTEM_LIBS} )
if( ALGEBRA_PLUGINS_SETUP_VECMEM )
if( ALGEBRA_PLUGINS_USE_SYSTEM_VECMEM )
find_package( vecmem 0.7.0 REQUIRED COMPONENTS LANGUAGE )
Expand All @@ -77,7 +80,7 @@ option( ALGEBRA_PLUGINS_SETUP_GOOGLETEST
"Set up the GoogleTest target(s) explicitly" TRUE )
option( ALGEBRA_PLUGINS_USE_SYSTEM_GOOGLETEST
"Pick up an existing installation of GoogleTest from the build environment"
FALSE )
${ALGEBRA_PLUGINS_USE_SYSTEM_LIBS} )
if( ALGEBRA_PLUGINS_SETUP_GOOGLETEST )
if( ALGEBRA_PLUGINS_USE_SYSTEM_GOOGLETEST )
find_package( GTest REQUIRED )
Expand All @@ -91,7 +94,7 @@ option( ALGEBRA_PLUGINS_SETUP_BENCHMARK
"Set up the Google Benchmark target(s) explicitly" TRUE )
option( ALGEBRA_PLUGINS_USE_SYSTEM_BENCHMARK
"Pick up an existing installation of Google Benchmark from the build environment"
FALSE )
${ALGEBRA_PLUGINS_USE_SYSTEM_LIBS} )
if( ALGEBRA_PLUGINS_SETUP_BENCHMARK )
if( ALGEBRA_PLUGINS_USE_SYSTEM_BENCHMARK )
find_package( benchmark REQUIRED )
Expand Down

0 comments on commit 03e0145

Please sign in to comment.