From 2ea07950ff4c0d195b7b3bad4f3b2ee1a7e68ada Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sun, 28 Apr 2019 12:54:59 +0200 Subject: [PATCH] case insensitive comparison for project name accept also mesh for FEM --- CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a80f19757..6c9bbea04 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -105,11 +105,12 @@ set (CMAKE_C_COMPILER "${PETSC_MPICC}") # Now start to care about DAMASK # DAMASK solver defines project to build -if (DAMASK_SOLVER STREQUAL "GRID") +string(TOLOWER ${DAMASK_SOLVER} DAMASK_SOLVER) +if (DAMASK_SOLVER STREQUAL "grid") project (damask-grid Fortran C) add_definitions (-DGrid) message ("Building Grid Solver\n") -elseif (DAMASK_SOLVER STREQUAL "FEM") +elseif (DAMASK_SOLVER STREQUAL "fem" OR DAMASK_SOLVER STREQUAL "mesh") project (damask-mesh Fortran C) add_definitions (-DFEM) message ("Building FEM Solver\n")