Skip to content

Commit 37f5d94

Browse files
committed
fix CMP0068 policy warning
1 parent 6b59501 commit 37f5d94

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cmake_minimum_required(VERSION 3.6)
1+
cmake_minimum_required(VERSION 3.9)
22

33
if (DEFINED LF_REACTOR_CPP_SUFFIX)
44
# the build is triggered from Lingua Franca
@@ -16,6 +16,11 @@ set(CMAKE_CXX_EXTENSIONS OFF)
1616

1717
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
1818

19+
# Use thw new CMP0068 policy. This needs to be set explicitly to avoid a warning message
20+
cmake_policy(SET CMP0068 NEW)
21+
set(CMAKE_BUILD_WITH_INSTALL_RPATH ON)
22+
set(BUILD_WITH_INSTALL_NAME_DIR ON)
23+
1924
if (NOT DEFINED LF_REACTOR_CPP_SUFFIX)
2025
find_program(CLANG_TIDY clang-tidy)
2126
if (CLANG_TIDY)

0 commit comments

Comments
 (0)