From d01c892bbd1cd1b5e3cc67470e168257ed43f105 Mon Sep 17 00:00:00 2001 From: heinrich5991 Date: Wed, 18 Oct 2017 13:45:29 +0200 Subject: [PATCH] Don't copy files twice in `CMakeLists.txt` --- CMakeLists.txt | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ac581101..fb3cda02e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -363,7 +363,7 @@ list(APPEND TARGETS_DEP png) set_glob(DEP_GLEW_SRC GLOB src/engine/external/glew glew.c) set_glob(DEP_GLEW_INCLUDES GLOB src/engine/external/glew/GL eglew.h glew.h glxew.h wglew.h) -add_library(glew OBJECT EXCLUDE_FROM_ALL ${DEP_GLEW_SRC}) +add_library(glew OBJECT EXCLUDE_FROM_ALL ${DEP_GLEW_SRC} ${DEP_GLEW_INCLUDES}) target_include_directories(glew PRIVATE src/engine/external/glew) set(DEP_GLEW $) @@ -395,10 +395,6 @@ endif() file(COPY data DESTINATION .) file(COPY shader DESTINATION .) -file(COPY ${CURL_COPY_FILES} DESTINATION .) -file(COPY ${FREETYPE_COPY_FILES} DESTINATION .) -file(COPY ${OPUSFILE_COPY_FILES} DESTINATION .) -file(COPY ${SDL2_COPY_FILES} DESTINATION .) set(COPY_FILES ${CURL_COPY_FILES} ${FREETYPE_COPY_FILES}