Fix compile bugs.

This commit is contained in:
hal8174 2024-05-02 21:19:20 +02:00
parent 0b132ea4e7
commit 849be4bcfa

View file

@ -101,14 +101,8 @@ OPTION(EMBREE_TUTORIALS "Enable to build Embree tutorials" ON)
# Embree configuration # Embree configuration
############################################################## ##############################################################
GET_PROPERTY(SHARED_LIBS_SUPPORTED GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS) SET(EMBREE_STATIC_LIB ON CACHE BOOL "Build Embree as a static library." FORCE)
IF(SHARED_LIBS_SUPPORTED) MARK_AS_ADVANCED(EMBREE_STATIC_LIB)
OPTION(EMBREE_STATIC_LIB "Build Embree as a static library.")
MARK_AS_ADVANCED(CLEAR EMBREE_STATIC_LIB)
ELSE()
SET(EMBREE_STATIC_LIB ON CACHE BOOL "Build Embree as a static library." FORCE)
MARK_AS_ADVANCED(EMBREE_STATIC_LIB)
ENDIF()
IF (EMBREE_STATIC_LIB) IF (EMBREE_STATIC_LIB)
SET(EMBREE_LIB_TYPE STATIC) SET(EMBREE_LIB_TYPE STATIC)
ADD_DEFINITIONS(-DEMBREE_STATIC_LIB) ADD_DEFINITIONS(-DEMBREE_STATIC_LIB)