From 465566a87edc837a9712ca247acffddd4be99349 Mon Sep 17 00:00:00 2001 From: Andy Maloney Date: Tue, 3 Jan 2023 05:04:25 -0500 Subject: [PATCH] {cmake} Remove dead code BUILD_LIB_TYPE isn't used anywhere. I think the intent with "add_definitions" here was to affect cmake (?), but it's actually just adding "#define DDL_STATIC_LIBRARY OFF" which isn't used in the code anywhere. --- CMakeLists.txt | 8 -------- 1 file changed, 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3288a18f0..e613a43cc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -388,14 +388,6 @@ IF (NOT TARGET uninstall AND ASSIMP_INSTALL) ADD_CUSTOM_TARGET(uninstall "${CMAKE_COMMAND}" -P "${CMAKE_CURRENT_BINARY_DIR}/cmake_uninstall.cmake") ENDIF() -# cmake configuration files -if(${BUILD_SHARED_LIBS}) - set(BUILD_LIB_TYPE SHARED) -else() - set(BUILD_LIB_TYPE STATIC) - add_definitions(-DDDL_STATIC_LIBRARY=OFF) -endif() - IF( UNIX ) # Use GNUInstallDirs for Unix predefined directories INCLUDE(GNUInstallDirs)