Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Replace file(copy_file), which is supported since cmake 3.21 only.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 6 Mar 2022 20:18:56 +0000 (21:18 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Sun, 6 Mar 2022 20:21:03 +0000 (21:21 +0100)
[ci-skip]

teshsuite/smpi/MBI/CMakeLists.txt

index 808cd70..1f7816c 100644 (file)
@@ -36,7 +36,7 @@ if (enable_smpi_MBI_testsuite)
   file(GLOB cfiles RELATIVE ${CMAKE_BINARY_DIR}/MBI/tmp ${CMAKE_BINARY_DIR}/MBI/tmp/*.c )
   foreach(cfile ${cfiles})
     # Copy the generated files only if different
-    file(COPY_FILE ${CMAKE_BINARY_DIR}/MBI/tmp/${cfile} ${CMAKE_BINARY_DIR}/MBI/${cfile} ONLY_IF_DIFFERENT)
+    file(COPY ${CMAKE_BINARY_DIR}/MBI/tmp/${cfile} DESTINATION ${CMAKE_BINARY_DIR}/MBI/)
     string(REGEX REPLACE "[.]c" "" basefile ${cfile})
     
     # Generate an executable for each of them
@@ -70,4 +70,4 @@ set(teshsuite_src ${teshsuite_src}
                   ${CMAKE_CURRENT_SOURCE_DIR}/MBI.py
                   ${CMAKE_CURRENT_SOURCE_DIR}/MBIutils.py
                   ${CMAKE_CURRENT_SOURCE_DIR}/simgrid.py
-                  PARENT_SCOPE)
\ No newline at end of file
+                  PARENT_SCOPE)