Fix compile bugs.
This commit is contained in:
parent
0b132ea4e7
commit
849be4bcfa
1 changed files with 2 additions and 8 deletions
10
Framework/external/embree/CMakeLists.txt
vendored
10
Framework/external/embree/CMakeLists.txt
vendored
|
|
@ -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)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue