Skip to content
Snippets Groups Projects
Commit 1b3b0b62 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[MaL] Use old-style target link libs for MKL.

This is partially reverting 071c19a9
"[CMake] Use generator expression for target_link_libraries()".

For the ninja build system when using shared libraries the
generator expressions produce erroneous build.ninja file, and
ninja generates an error:

```
CMake Error:
  Running

   '/usr/bin/ninja' '-C' '/home/naumov/w/ogs/r' '-t' 'recompact'

  failed with:

   ninja: error: build.ninja:8128: bad $-escape (literal $ must be written as $$)
```

Reason unknown.
parent b0baaa4d
No related branches found
No related tags found
No related merge requests found
......@@ -41,7 +41,6 @@ target_link_libraries(MathLib
${OpenMP_CXX_LIBRARIES}
$<$<TARGET_EXISTS:LAPACK::LAPACK>:LAPACK::LAPACK>
$<$<BOOL:${OGS_USE_LIS}>:${LIS_LIBRARIES}>
$<$<BOOL:${OGS_USE_MKL}>:${MKL_LIBRARIES}>
PRIVATE
spdlog::spdlog
)
......@@ -52,6 +51,9 @@ endif()
if(OGS_USE_CVODE)
target_link_libraries(MathLib PUBLIC ${CVODE_LIBRARIES})
endif()
if(OGS_USE_MKL)
target_link_libraries(MathLib PUBLIC ${MKL_LIBRARIES})
endif()
target_compile_definitions(MathLib
PUBLIC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment