[cmake] Fix Alembic build errors with msvc
authorlazydodo <github@lazydodo.com>
Fri, 21 Apr 2017 18:18:19 +0000 (12:18 -0600)
committerlazydodo <github@lazydodo.com>
Fri, 21 Apr 2017 18:18:19 +0000 (12:18 -0600)
build_files/cmake/platform/platform_win32_msvc.cmake

index 3ea93a962901d345de3e3d3f366945b6e739f9fc..6447559f62cfd861ac91f838876b5153134f28b7 100644 (file)
@@ -37,6 +37,12 @@ macro(windows_find_package package_name
        endif(WITH_WINDOWS_FIND_MODULES)
 endmacro()
 
+macro(find_package_wrapper)
+       if(WITH_WINDOWS_FIND_MODULES)
+               find_package(${ARGV})
+       endif()
+endmacro()
+
 add_definitions(-DWIN32)
 # Minimum MSVC Version
 if(CMAKE_CXX_COMPILER_ID MATCHES MSVC)
@@ -432,6 +438,7 @@ if(WITH_ALEMBIC)
        set(ALEMBIC_INCLUDE_DIRS ${ALEMBIC_INCLUDE_DIR})
        set(ALEMBIC_LIBPATH ${ALEMBIC}/lib)
        set(ALEMBIC_LIBRARIES optimized alembic debug alembic_d)
+       set(ALEMBIC_FOUND 1)
 endif()
 
 if(WITH_MOD_CLOTH_ELTOPO)