Skip to content
Snippets Groups Projects
Commit 7c7ffc57 authored by Soeren Peters's avatar Soeren Peters
Browse files

Remove CMP0105 policy.

parent 38877c01
No related branches found
No related tags found
1 merge request!326Add project_warnings and project_options target. A lot of clean up in cmake....
......@@ -49,7 +49,11 @@ function(enable_sanitizers project_name)
"")
message(STATUS "Enabling sanitizers: ${LIST_OF_SANITIZERS}")
target_compile_options(${project_name} INTERFACE -fsanitize=${LIST_OF_SANITIZERS})
target_link_options(${project_name} INTERFACE -fsanitize=${LIST_OF_SANITIZERS})
# From cmake 3.18 the LINK_OPTIONS and INTERFACE_LINK_OPTIONS target properties are now used for the device link step
# https://cmake.org/cmake/help/latest/release/3.18.html
# Thats why we are using a generator expression to only add the sanitizers to the host link step.
target_link_options(${project_name} INTERFACE "$<HOST_LINK:-fsanitize=$<JOIN:${LIST_OF_SANITIZERS},;>>")
endif()
endif()
......
......@@ -29,9 +29,6 @@
cmake_minimum_required(VERSION 3.20 FATAL_ERROR)
# https://git.rz.tu-bs.de/irmb/VirtualFluids_dev/-/issues/154
cmake_policy(SET CMP0105 OLD)
project(
VirtualFluids
VERSION 0.1.0
......
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