Skip to content

Commit

Permalink
handle WITH_{backend} switch to turn on/off deps
Browse files Browse the repository at this point in the history
  • Loading branch information
snikulov committed Feb 1, 2013
1 parent 4f02d43 commit eddaacb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/backends/CMakeLists.txt
Expand Up @@ -3,7 +3,9 @@ colormsg(_HIBLUE_ "Configuring SOCI database backends:")
# First, we'll investigate what can be found from database engines
foreach(dep ${SOCI_BACKENDS_DB_DEPENDENCIES})
string(TOUPPER ${dep} depUP)
find_package(${dep})
if (WITH_${depUP})
find_package(${dep})
endif()
if(${dep}_FOUND OR ${depUP}_FOUND)
set(${depUP}_FOUND ON)
else()
Expand Down

0 comments on commit eddaacb

Please sign in to comment.