Toggle for precompiled dependencies #13
@ -92,6 +92,9 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
|
|||||||
###########################################################################
|
###########################################################################
|
||||||
# Options.
|
# Options.
|
||||||
|
|
||||||
|
# Use precompiled library dependencies
|
||||||
|
option(WITH_LIBS_PRECOMPILED "Use precompiled library dependencies" ON)
|
||||||
|
|
||||||
# Library dependencies
|
# Library dependencies
|
||||||
option(WITH_CYCLES_ALEMBIC "Build with Alembic procedural support" ON)
|
option(WITH_CYCLES_ALEMBIC "Build with Alembic procedural support" ON)
|
||||||
option(WITH_CYCLES_EMBREE "Build with Embree support" ON)
|
option(WITH_CYCLES_EMBREE "Build with Embree support" ON)
|
||||||
|
@ -67,7 +67,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(EXISTS ${_cycles_lib_dir})
|
if(EXISTS ${_cycles_lib_dir} AND WITH_LIBS_PRECOMPILED)
|
||||||
message(STATUS "Using precompiled libraries at ${_cycles_lib_dir}")
|
message(STATUS "Using precompiled libraries at ${_cycles_lib_dir}")
|
||||||
|
|
||||||
_set_default(ALEMBIC_ROOT_DIR "${_cycles_lib_dir}/alembic")
|
_set_default(ALEMBIC_ROOT_DIR "${_cycles_lib_dir}/alembic")
|
||||||
@ -118,7 +118,11 @@ if(EXISTS ${_cycles_lib_dir})
|
|||||||
# Ignore system libraries
|
# Ignore system libraries
|
||||||
set(CMAKE_IGNORE_PATH "${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES};${CMAKE_SYSTEM_INCLUDE_PATH};${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES};${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}")
|
set(CMAKE_IGNORE_PATH "${CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES};${CMAKE_SYSTEM_INCLUDE_PATH};${CMAKE_C_IMPLICIT_INCLUDE_DIRECTORIES};${CMAKE_CXX_IMPLICIT_INCLUDE_DIRECTORIES}")
|
||||||
else()
|
else()
|
||||||
|
if(NOT WITH_LIBS_PRECOMPILED)
|
||||||
|
message(STATUS "Not using precompiled libraries")
|
||||||
|
else()
|
||||||
message(STATUS "No precompiled libraries found at ${_cycles_lib_dir}")
|
message(STATUS "No precompiled libraries found at ${_cycles_lib_dir}")
|
||||||
|
endif()
|
||||||
message(STATUS "Attempting to use system libraries instead")
|
message(STATUS "Attempting to use system libraries instead")
|
||||||
unset(_cycles_lib_dir)
|
unset(_cycles_lib_dir)
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user