Commit 318fcf9e authored by Jeremy Cohen's avatar Jeremy Cohen

Removed absolute path in Windows metis cmake config

parent a0d86207
......@@ -69,7 +69,7 @@ IF (NEKTAR_USE_METIS)
EXTERNALPROJECT_ADD_STEP(metis-5.1.0 patch-install-path
COMMAND powershell -Command "(Get-Content ${TPSRC}/metis-5.1.0/GKlib/gk_arch.h) -replace '(#define rint\\(x\\)[\\w\\(\\) \\+\\.]+)',( \"#if (_MSC_VER " < " 1800)`n\"+'$1'+\"`n#endif\") | Out-File -filepath ${TPSRC}/metis-5.1.0/GKlib/gk_arch.h -encoding ASCII"
COMMAND powershell -Command "(Get-Content ${TPSRC}/metis-5.1.0/GKlib/gk_arch.h) -replace '(#define INFINITY FLT_MAX)',(\"#if (_MSC_VER " < " 1800)`n\"+'$1'+\"`n#endif\") | Out-File -filepath ${TPSRC}/metis-5.1.0/GKlib/gk_arch.h -encoding ASCII"
COMMAND powershell -Command (Add-Content C:/work/nektar-mpi/ThirdParty/metis-5.1.0/CMakeLists.txt "`nINSTALL`(TARGETS` metis` DESTINATION` lib`)`nINSTALL`(FILES` include/metis.h` DESTINATION` include`)`n")
COMMAND powershell -Command (Add-Content ${TPSRC}/metis-5.1.0/CMakeLists.txt "`nINSTALL`(TARGETS` metis` DESTINATION` lib`)`nINSTALL`(FILES` include/metis.h` DESTINATION` include`)`n")
DEPENDERS build
DEPENDEES download)
ENDIF ()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment