From 12545578149b7fc94e014cbf8bf48295c519c901 Mon Sep 17 00:00:00 2001 From: David Rowe Date: Sun, 12 Apr 2020 13:24:35 +1200 Subject: [PATCH] Fix Linux cmake problem Credit: Dale Glass --- cmake/macros/TargetPolyvox.cmake | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/cmake/macros/TargetPolyvox.cmake b/cmake/macros/TargetPolyvox.cmake index 69f50c407e..576b454f57 100644 --- a/cmake/macros/TargetPolyvox.cmake +++ b/cmake/macros/TargetPolyvox.cmake @@ -21,25 +21,6 @@ macro(TARGET_POLYVOX) list(APPEND POLYVOX_LIBRARY_DEBUG ${POLYVOX_UTIL_LIBRARY_DEBUG}) select_library_configurations(POLYVOX) list(APPEND POLYVOX_INCLUDE_DIRS ${VCPKG_INSTALL_ROOT}/include) - if (${CMAKE_SYSTEM_NAME} STREQUAL "Linux") - set(_LIB_GLOBS) - if(NOT DEFINED CMAKE_BUILD_TYPE OR "${CMAKE_BUILD_TYPE}" STREQUAL "Debug") - foreach(_lib ${POLYVOX_LIBRARY_DEBUG}) - list(APPEND _LIB_GLOBS ${_lib}*) - endforeach() - endif() - if(NOT DEFINED CMAKE_BUILD_TYPE OR "${CMAKE_BUILD_TYPE}" STREQUAL "Release") - foreach(_lib ${POLYVOX_LIBRARY_RELEASE}) - list(APPEND _LIB_GLOBS ${_lib}*) - endforeach() - endif() - add_custom_command( - TARGET ${TARGET_NAME} - POST_BUILD - COMMAND cp - ARGS -d ${_LIB_GLOBS} ${CMAKE_BINARY_DIR} - ) - endif() endif() target_link_libraries(${TARGET_NAME} ${POLYVOX_LIBRARIES}) target_include_directories(${TARGET_NAME} PUBLIC ${POLYVOX_INCLUDE_DIRS})