Commits

Lisandro Dalcin  committed 53964ab

CMake: fix sed invocation in install target

  • Participants
  • Parent commits 8f003e0

Comments (0)

Files changed (1)

File CMakeLists.txt

 install (DIRECTORY include/               DESTINATION include FILES_MATCHING PATTERN "*.h"    )
 install (DIRECTORY ${PETSC_ARCH}/include/ DESTINATION include FILES_MATCHING PATTERN "*.h"    )
 install (DIRECTORY ${PETSC_ARCH}/include/ DESTINATION include FILES_MATCHING PATTERN "*.mod"  )
-install (CODE "execute_process(COMMAND sed -i s/.{PETSC_ARCH}.//g ${CMAKE_INSTALL_PREFIX}/conf/petigavariables)")
+install (CODE "execute_process(COMMAND sed -i -e s/.{PETSC_ARCH}.//g ${CMAKE_INSTALL_PREFIX}/conf/petigavariables)")