Toggle for precompiled dependencies #13

Merged
Brecht Van Lommel merged 2 commits from boberfly/cycles:precompiledDepsToggle into main 2024-08-09 15:16:43 +02:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit 91d6b6924b - Show all commits

View File

@ -92,8 +92,8 @@ set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS
###########################################################################
# Options.
# Use precompiled dependencies
option(WITH_CYCLES_DEPENDENCIES "Use precompiled dependencies" ON)
# Use precompiled library dependencies
option(WITH_LIBS_PRECOMPILED "Use precompiled library dependencies" ON)
# Library dependencies
option(WITH_CYCLES_ALEMBIC "Build with Alembic procedural support" ON)

View File

@ -67,7 +67,7 @@ else()
endif()
endif()
if(EXISTS ${_cycles_lib_dir} AND WITH_CYCLES_DEPENDENCIES)
if(EXISTS ${_cycles_lib_dir} AND WITH_LIBS_PRECOMPILED)
message(STATUS "Using precompiled libraries at ${_cycles_lib_dir}")
_set_default(ALEMBIC_ROOT_DIR "${_cycles_lib_dir}/alembic")
@ -118,7 +118,7 @@ if(EXISTS ${_cycles_lib_dir} AND WITH_CYCLES_DEPENDENCIES)
# 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}")
else()
if(NOT WITH_CYCLES_DEPENDENCIES)
if(NOT WITH_LIBS_PRECOMPILED)
message(STATUS "Not using precompiled libraries")
else()
message(STATUS "No precompiled libraries found at ${_cycles_lib_dir}")