# Error when configuring modified version of OGS (H2M\_phasefield)

**URL:** <https://discourse.opengeosys.org/t/error-when-configuring-modified-version-of-ogs-h2m-phasefield/1085>\
**Category:** Help & Support\
**Created:** [November 17, 2022, 4:51am UTC](https://discourse.opengeosys.org/t/error-when-configuring-modified-version-of-ogs-h2m-phasefield/1085 "2022-11-17T04:51:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Augustus](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/augustus/32/923_2.png) [@Augustus](https://discourse.opengeosys.org/u/Augustus)\
**Post date:** [November 17, 2022, 4:51am UTC](https://discourse.opengeosys.org/t/error-when-configuring-modified-version-of-ogs-h2m-phasefield/1085/1 "2022-11-17T04:51:04Z")

</div>

Dear all  
I am a new user here. recently i am learning phasefield fracture and tryng to configure the H2M\_phasefield code. However the error occured during the process of configuration and really confused me. The error is shown as

```auto
CMake Error at ThirdParty/cmake-modules/cotire.cmake:2254 (file):
  Error evaluating generator expression:

    $<COMPILE_LANG_AND_ID:CUDA,NVIDIA>

  $<COMPILE_LANG_AND_ID:lang,id> may only be used with binary targets to
  specify include directories, compile definitions, and compile options. It
  may not be used with the add_custom_command, add_custom_target, or
  file(GENERATE) commands.
Call Stack (most recent call first):
  ThirdParty/cmake-modules/cotire.cmake:2848 (cotire_generate_target_script)
  ThirdParty/cmake-modules/cotire.cmake:3254 (cotire_process_target_language)
  ThirdParty/cmake-modules/cotire.cmake:3431 (cotire_target)
  Tests/CMakeLists.txt:76 (cotire)

CMake Error at ThirdParty/cmake-modules/cotire.cmake:2254 (file):
  Error evaluating generator expression:

    $<COMPILE_LANG_AND_ID:CUDA,NVIDIA>

  $<COMPILE_LANG_AND_ID:lang,id> may only be used with binary targets to
  specify include directories, compile definitions, and compile options. It
  may not be used with the add_custom_command, add_custom_target, or
  file(GENERATE) commands.
Call Stack (most recent call first):
  ThirdParty/cmake-modules/cotire.cmake:2848 (cotire_generate_target_script)
  ThirdParty/cmake-modules/cotire.cmake:3254 (cotire_process_target_language)
  ThirdParty/cmake-modules/cotire.cmake:3431 (cotire_target)
  Tests/CMakeLists.txt:76 (cotire)

```

```
 could someone give me help?
 thanks.
 Augustus

```

---

<div class="post-metadata">

**Author:** ![bilke](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/bilke/32/868_2.png) [@bilke](https://discourse.opengeosys.org/u/bilke)\
**Post date:** [November 17, 2022, 10:14am UTC](https://discourse.opengeosys.org/t/error-when-configuring-modified-version-of-ogs-h2m-phasefield/1085/2 "2022-11-17T10:14:38Z")

</div>

It looks like you are on a very old version of OGS (cotire.cmake was removed some years ago). Please update and try again.

---

<div class="post-metadata">

**Author:** ![Augustus](https://discourse.opengeosys.org/user_avatar/discourse.opengeosys.org/augustus/32/923_2.png) [@Augustus](https://discourse.opengeosys.org/u/Augustus)\
**Post date:** [November 17, 2022, 10:32am UTC](https://discourse.opengeosys.org/t/error-when-configuring-modified-version-of-ogs-h2m-phasefield/1085/3 "2022-11-17T10:32:46Z")

</div>

Thank you bilke! I think i have solved this problem from another topic ([[Got error message in ccmake](https://discourse.opengeosys.org/t/got-error-message-in-ccmake/632)]) in the community.
