From 8015a303086599719b89c1d3a2c3c56405451ef0 Mon Sep 17 00:00:00 2001 From: DRC Date: Sat, 17 Mar 2012 14:32:38 +0000 Subject: [PATCH] Visual Studio 2010 doesn't like the wildcard at compile time, so let CMake expand it instead. 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/simd/CMakeLists.txt b/simd/CMakeLists.txt index 0eacebe..06bbae4 100755 --- a/simd/CMakeLists.txt +++ b/simd/CMakeLists.txt @@ -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() -- 2.40.0