]> granicus.if.org Git - libjpeg-turbo/commitdiff
Visual Studio 2010 doesn't like the wildcard at compile time, so let CMake expand...
authorDRC <dcommander@users.sourceforge.net>
Sat, 17 Mar 2012 14:32:38 +0000 (14:32 +0000)
committerDRC <dcommander@users.sourceforge.net>
Sat, 17 Mar 2012 14:32:38 +0000 (14:32 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/libjpeg-turbo/code/branches/1.2.x@813 632fc199-4ca6-4c93-a231-07263d6284db

simd/CMakeLists.txt

index 0eacebe1bb21c8df4b67e54155c0f2ca2a648348..06bbae4f235c519b3b9655cc288184245ffc3173 100755 (executable)
@@ -37,6 +37,8 @@ else()
   set(OBJDIR ${CMAKE_CURRENT_BINARY_DIR})
 endif()
 
+file(GLOB INC_FILES *.inc)
+
 foreach(file ${SIMD_BASENAMES})
   set(DEPFILE "")
   set(SIMD_SRC ${CMAKE_CURRENT_SOURCE_DIR}/${file}.asm)
@@ -53,7 +55,8 @@ foreach(file ${SIMD_BASENAMES})
     string(REGEX REPLACE "gra" "gry" DEPFILE ${DEPFILE})
   endif()
   set(SIMD_OBJ ${OBJDIR}/${file}.obj)
-  add_custom_command(OUTPUT ${SIMD_OBJ} DEPENDS ${SIMD_SRC} ${DEPFILE} *.inc
+  add_custom_command(OUTPUT ${SIMD_OBJ}
+    DEPENDS ${SIMD_SRC} ${DEPFILE} ${INC_FILES}
     COMMAND ${NASM} ${NAFLAGS} ${SIMD_SRC} -o${SIMD_OBJ})
   set(SIMD_OBJS ${SIMD_OBJS} ${SIMD_OBJ})
 endforeach()