Skip to content

Commit

Permalink
fixed -DSOCI_EMPTY=ON; fixed condition
Browse files Browse the repository at this point in the history
  • Loading branch information
snikulov committed Feb 1, 2013
1 parent 96fdb2a commit 68f6754
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/backends/CMakeLists.txt
Expand Up @@ -17,14 +17,18 @@ endforeach()
file(GLOB backend_dirs RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} *)

# empty backend always on by default
option(EMPTY_FOUND "Build empty backend" ON)
option(SOCI_EMPTY "Build empty backend" ON)
if(SOCI_EMPTY)
set(WITH_EMPTY ON)
set(EMPTY_FOUND ON)
endif()

# enable only found backends
foreach(dir ${backend_dirs})
if(IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${dir})
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${dir}/CMakeLists.txt)
string(TOUPPER ${dir} dirUP)
if(${dirUP}_FOUND AND WITH_${depUP})
if(${dirUP}_FOUND AND WITH_${dirUP})
add_subdirectory(${dir})
endif()
endif()
Expand Down

0 comments on commit 68f6754

Please sign in to comment.