]> git.saurik.com Git - apt.git/commitdiff
CMake: Use COPYONLY instead of @ONLY
authorJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 15:54:19 +0000 (17:54 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 11 Aug 2016 17:50:57 +0000 (19:50 +0200)
I don't know what happened back in 2009 when I wrote this,
but it seems I used the wrong option. These files should
not have any variable substitution done to them.

CMake/Misc.cmake
CMakeLists.txt

index 79587b0681cf8a6569e9627a007855734630896e..68ab227581498bc5e459981109848864481404ce 100644 (file)
@@ -4,7 +4,7 @@ include(CheckCXXCompilerFlag)
 function(flatify target headers)
     foreach(header ${headers})
         get_filename_component(tgt ${header} NAME)
-        configure_file(${header} ${target}/${tgt} @ONLY)
+        configure_file(${header} ${target}/${tgt} COPYONLY)
     endforeach(header ${headers})
 endfunction()
 
index 6838699614a7dec571aa5b8ec63d54a16a56274c..3263bea82ff4a0b88e9853bff5aa3725a791b62c 100644 (file)
@@ -92,7 +92,7 @@ if (NOT HAVE_STATVFS)
   if (NOT HAVE_VFS_H AND NOT HAVE_MOUNT_H)
     message(FATAL_ERROR "Can find neither statvfs() nor statfs()")
   endif()
-  configure_file(CMake/statvfs.h.in ${PROJECT_BINARY_DIR}/include/statvfs.h @ONLY)
+  configure_file(CMake/statvfs.h.in ${PROJECT_BINARY_DIR}/include/statvfs.h COPYONLY)
 endif()
 
 CHECK_STRUCT_HAS_MEMBER("struct statfs" f_type sys/vfs.h HAVE_STRUCT_STATFS_F_TYPE)