aboutsummaryrefslogtreecommitdiff
path: root/ports/vtk/SplitLibraryConfigurations.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'ports/vtk/SplitLibraryConfigurations.cmake')
-rw-r--r--ports/vtk/SplitLibraryConfigurations.cmake28
1 files changed, 0 insertions, 28 deletions
diff --git a/ports/vtk/SplitLibraryConfigurations.cmake b/ports/vtk/SplitLibraryConfigurations.cmake
deleted file mode 100644
index fc4d87ec8..000000000
--- a/ports/vtk/SplitLibraryConfigurations.cmake
+++ /dev/null
@@ -1,28 +0,0 @@
-
-cmake_minimum_required(VERSION 3.2.0)
-
-function(split_library_configurations LIBRARIES OPTIMIZED_OUT_VAR DEBUG_OUT_VAR GENERAL_OUT_VAR)
- set(OPTIMIZED_LIBRARIES)
- set(DEBUG_LIBRARIES)
- set(GENERAL_LIBRARIES)
-
- set(CURRENT_TYPE)
- foreach(LIBRARY ${LIBRARIES})
- if("${LIBRARY}" STREQUAL "optimized" OR "${LIBRARY}" STREQUAL "debug" OR "${LIBRARY}" STREQUAL "general")
- set(CURRENT_TYPE "${LIBRARY}")
- else()
- if("${CURRENT_TYPE}" STREQUAL "optimized")
- list(APPEND OPTIMIZED_LIBRARIES "${LIBRARY}")
- elseif("${CURRENT_TYPE}" STREQUAL "debug")
- list(APPEND DEBUG_LIBRARIES "${LIBRARY}")
- else()
- list(APPEND GENERAL_LIBRARIES "${LIBRARY}")
- endif()
- set(CURRENT_TYPE)
- endif()
- endforeach()
-
- set(${OPTIMIZED_OUT_VAR} "${OPTIMIZED_LIBRARIES}" PARENT_SCOPE)
- set(${DEBUG_OUT_VAR} "${DEBUG_LIBRARIES}" PARENT_SCOPE)
- set(${GENERAL_OUT_VAR} "${GENERAL_LIBRARIES}" PARENT_SCOPE)
-endfunction() \ No newline at end of file