diff options
Diffstat (limited to 'build_files/build_environment/cmake/opensubdiv.cmake')
-rw-r--r-- | build_files/build_environment/cmake/opensubdiv.cmake | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/build_files/build_environment/cmake/opensubdiv.cmake b/build_files/build_environment/cmake/opensubdiv.cmake index 1db3b11de9a..18b51f57225 100644 --- a/build_files/build_environment/cmake/opensubdiv.cmake +++ b/build_files/build_environment/cmake/opensubdiv.cmake @@ -35,7 +35,6 @@ set(OPENSUBDIV_EXTRA_ARGS if(WIN32) set(OPENSUBDIV_EXTRA_ARGS ${OPENSUBDIV_EXTRA_ARGS} - -DNO_CUDA=Off -DTBB_INCLUDE_DIR=${LIBDIR}/tbb/include -DTBB_LIBRARIES=${LIBDIR}/tbb/lib/tbb_static.lib -DCLEW_INCLUDE_DIR=${LIBDIR}/clew/include/CL @@ -44,6 +43,18 @@ if(WIN32) -DCUEW_LIBRARY=${LIBDIR}/cuew/lib/cuew${LIBEXT} -DCMAKE_EXE_LINKER_FLAGS_RELEASE=libcmt.lib ) + if("${CMAKE_SIZEOF_VOID_P}" EQUAL "8") + set(OPENSUBDIV_EXTRA_ARGS + ${OPENSUBDIV_EXTRA_ARGS} + -DNO_CUDA=OFF + ) + else() + set(OPENSUBDIV_EXTRA_ARGS + ${OPENSUBDIV_EXTRA_ARGS} + -DNO_CUDA=ON + ) + endif() + else() set(OPENSUBDIV_EXTRA_ARGS ${OPENSUBDIV_EXTRA_ARGS} |