Skip to content

Commit

Permalink
Merge pull request #36 from avg-I/cmake/find-soci
Browse files Browse the repository at this point in the history
FindSoci.cmake: fix couple of minor issues
  • Loading branch information
mloskot committed Feb 2, 2013
2 parents 2c02332 + 710354d commit 7405f7e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cmake/modules/FindSoci.cmake
Expand Up @@ -70,7 +70,7 @@ IF(SOCI_INCLUDE_DIR AND SOCI_LIBRARY)
MARK_AS_ADVANCED(SOCI_${plugin}_PLUGIN)

IF(SOCI_${plugin}_PLUGIN)
MESSAGE(STATUS " * Plugin ${plugin} found ${SOCI_${plugin}_LIBRARY}.")
MESSAGE(STATUS " * Plugin ${plugin} found ${SOCI_${plugin}_PLUGIN}.")
SET(SOCI_${plugin}_FOUND True)
ELSE()
MESSAGE(STATUS " * Plugin ${plugin} not found.")
Expand All @@ -83,9 +83,7 @@ IF(SOCI_INCLUDE_DIR AND SOCI_LIBRARY)
### FOURTH CHECK: Check if the required components were all found
#
FOREACH(component ${Soci_FIND_COMPONENTS})
IF(${SOCI_${component}_FOUND})
# Does not work with NOT ... . No idea why.
ELSE()
IF(NOT SOCI_${component}_FOUND)
MESSAGE(SEND_ERROR "Required component ${component} not found.")
ENDIF()
ENDFOREACH()
Expand Down

0 comments on commit 7405f7e

Please sign in to comment.