File 0001-Modernize-Fix-CMakeLists.patch of Package molekel
From 1dcc2650f6d28522c2fee263ba6c711b589147e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Br=C3=BCns?= <stefan.bruens@rwth-aachen.de>
Date: Sun, 22 Dec 2024 19:08:03 +0100
Subject: [PATCH 1/4] Modernize/Fix CMakeLists
---
src/CMakeLists.txt | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index f2d45a0..8920626 100755
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -145,11 +145,7 @@ ENDIF( WIN32 )
#### to get rid of the console
#### VTK ####
-FIND_PACKAGE(VTK)
-IF(NOT VTK_FOUND)
- MESSAGE(FATAL_ERROR "Please set VTK_DIR.")
-ENDIF(NOT VTK_FOUND)
-INCLUDE(${VTK_USE_FILE})
+FIND_PACKAGE(VTK REQUIRED)
#### QT4 ####
FIND_PACKAGE(Qt4)
@@ -193,11 +189,11 @@ ENDIF ( APPLE )
# NOTE: assumes Coin is being used; need to check what happens for
# other OpenInventor implementations
-IF( ${IV_DYNAMIC} )
+IF( IV_DYNAMIC )
ADD_DEFINITIONS( -DCOIN_DLL )
-ELSE( ${IV_DYNAMIC} )
+ELSE()
ADD_DEFINITIONS( -DCOIN_NOT_DLL )
-ENDIF( ${IV_DYNAMIC} )
+ENDIF()
#### OPEN MOIV ####
# OpenMOIV (Molecular Inventor) include and lib directories.
--
2.47.1