]> https://gitweb.dealii.org/ - dealii.git/commitdiff
CMake: set policy CMP0177, which normalizes DESTINATION paths 18606/head
authorMatthias Maier <tamiko@43-1.org>
Mon, 30 Jun 2025 19:43:18 +0000 (14:43 -0500)
committerMatthias Maier <tamiko@43-1.org>
Mon, 30 Jun 2025 19:43:18 +0000 (14:43 -0500)
CMakeLists.txt

index 56564060cf78b34738b51815a3ffbfb1152dc786..1e74325b68cea8bdf50b469502148149018c2956 100644 (file)
@@ -58,6 +58,12 @@ if(POLICY CMP0167)
   cmake_policy(SET CMP0167 NEW)
 endif()
 
+if(POLICY CMP0177)
+  # Introduced in CMAKE 3:31: Normalize DESTINATION paths so that they do
+  # not contain "." or "..".
+  cmake_policy(SET CMP0177 NEW)
+endif()
+
 list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules/)
 
 #

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.