From 569dd694fe698d5ddba35c2b70ba17da3a059327 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 7 Mar 2014 13:42:13 -0800 Subject: [PATCH] cmake styling cleanup in Visage find module and interface CMakeLists --- cmake/modules/FindVisage.cmake | 4 ++-- interface/CMakeLists.txt | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cmake/modules/FindVisage.cmake b/cmake/modules/FindVisage.cmake index 84f672525d..aa7f0f9faf 100644 --- a/cmake/modules/FindVisage.cmake +++ b/cmake/modules/FindVisage.cmake @@ -15,7 +15,7 @@ if (VISAGE_LIBRARIES AND VISAGE_INCLUDE_DIRS) # in cache already set(VISAGE_FOUND TRUE) -else (VISAGE_LIBRARIES AND VISAGE_INCLUDE_DIRS) +else () find_path(VISAGE_INCLUDE_DIR VisageTracker2.h ${VISAGE_ROOT_DIR}/include) if (APPLE) @@ -73,4 +73,4 @@ else (VISAGE_LIBRARIES AND VISAGE_INCLUDE_DIRS) # show the VISAGE_INCLUDE_DIRS and VISAGE_LIBRARIES variables only in the advanced view mark_as_advanced(VISAGE_INCLUDE_DIRS VISAGE_LIBRARIES) -endif (VISAGE_LIBRARIES AND VISAGE_INCLUDE_DIRS) +endif () diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 7974f9b5d7..f9aa006e9e 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -49,7 +49,8 @@ endforeach(SUBDIR) # windows also includes the faceshift externals, because using a lib doesn't work due to debug/release mismatch if (WIN32) set(EXTERNAL_SOURCE_SUBDIRS "faceshift") -endif (WIN32) +endif () + foreach(EXTERNAL_SOURCE_SUBDIR ${EXTERNAL_SOURCE_SUBDIRS}) file(GLOB_RECURSE SUBDIR_SRCS "external/${EXTERNAL_SOURCE_SUBDIR}/src/*.cpp"