diff --git a/CMakeLists.txt b/CMakeLists.txt
index fb8e4787b085bfac396dfb2fa004875da4bbd862..78f23bd10f5effc86d87a18f0dc8c09971d12e68 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -119,7 +119,9 @@ IF(OGS_USE_LIS)
     ADD_DEFINITIONS(-DUSE_LIS)
 ENDIF()
 
-
+IF(OGS_USE_PETSC)
+    ADD_DEFINITIONS(-DUSE_PETSC)
+ENDIF()
 
 IF(OGS_USE_EIGEN)
 #	ADD_DEFINITIONS(-DEIGEN_DEFAULT_DENSE_INDEX_TYPE=std::size_t)
diff --git a/scripts/cmake/Find.cmake b/scripts/cmake/Find.cmake
index 52aaf09264b12d36e05502ea7f27aa2964aa2331..93b37db5e4f5e435cc061104bb5d2c66ff853ade 100644
--- a/scripts/cmake/Find.cmake
+++ b/scripts/cmake/Find.cmake
@@ -119,7 +119,6 @@ ENDIF()
 
 IF(OGS_USE_PETSC)
     MESSAGE (STATUS  "Configuring for PETSc" )
-
     SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/scripts/cmake/findPETSC")
     FIND_PACKAGE(PETSc REQUIRED)
 
@@ -128,6 +127,4 @@ IF(OGS_USE_PETSC)
      )
 
     FIND_PACKAGE(MPI REQUIRED)
-
-    ADD_DEFINITIONS(-DOGS_USE_PETSC)
 ENDIF()