Eliminate redundant dependency statement; Notify user when SIMD is disabled


git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/trunk@271 632fc199-4ca6-4c93-a231-07263d6284db
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 7b0ae05..6b3b04b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -110,12 +110,12 @@
   set_source_files_properties(${SIMD_OBJS} PROPERTIES GENERATED 1)
 else()
   set(JPEG_SOURCES ${JPEG_SOURCES} jsimd_none.c)
+  message(STATUS "Not using SIMD acceleration")
 endif()
 
 add_subdirectory(sharedlib)
 
 add_library(jpeg-static STATIC ${JPEG_SOURCES} ${SIMD_OBJS})
-add_dependencies(jpeg-static simd)
 if(NOT MSVC)
   set_target_properties(jpeg-static PROPERTIES OUTPUT_NAME jpeg)
 endif()
@@ -130,7 +130,6 @@
 
 add_library(turbojpeg-static STATIC ${JPEG_SOURCES} ${SIMD_OBJS}
   turbojpegl.c)
-add_dependencies(turbojpeg-static simd)
 if(NOT MSVC)
   set_target_properties(turbojpeg-static PROPERTIES OUTPUT_NAME turbojpeg)
 endif()