Skip to content

Commit

Permalink
[superbuild] reordering CMAKE Options
Browse files Browse the repository at this point in the history
  • Loading branch information
sherholz-intel committed Sep 26, 2024
1 parent aef931e commit 8aac632
Showing 1 changed file with 11 additions and 10 deletions.
21 changes: 11 additions & 10 deletions superbuild/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,16 @@ endmacro()
## Superbuild options.
## ======================================================================== ##

option(BUILD_DEPENDENCIES_ONLY
"Do not build Open PGL itself, only its dependencies"
OFF
)
option(BUILD_DEPENDENCIES_ONLY "Do not build Open PGL itself, only its dependencies" OFF)
option(BUILD_STATIC "Building Open PGL as a static library" OFF)
option(BUILD_TOOLS "Building Open PGL tools as well" OFF)

option(BUILD_TBB "Build Intel Threading Building Blocks or search in environment?" ON)
option(BUILD_TBB_FROM_SOURCE "Build Intel Threading Building Blocks from source?" OFF)

option(BUILD_OIDN "Build OpenImageDenoise as a part of the superbuild." ON)
option(BUILD_OIDN_FROM_SOURCE "Build OpenImageDenoise or use pre-built version?" ON)
option(DOWNLOAD_ISPC "Download ISPC or use the one found in the system environment?" ON)

## ======================================================================== ##
## Build dependencies.
Expand All @@ -78,8 +84,7 @@ option(BUILD_DEPENDENCIES_ONLY
## variables to select different versions.
## ======================================================================== ##

option(BUILD_TBB "Build Intel Threading Building Blocks or search in environment?" ON)
option(BUILD_TBB_FROM_SOURCE "Build Intel Threading Building Blocks from source?" OFF)

if (BUILD_TBB)
set(TBB_VERSION "2021.13.0" CACHE STRING "TBB version to download")
if (BUILD_TBB_FROM_SOURCE)
Expand Down Expand Up @@ -115,10 +120,6 @@ if (BUILD_TBB)
include(dep_tbb)
endif()

option(BUILD_OIDN "Build OpenImageDenoise as a part of the superbuild." ON)
option(BUILD_OIDN_FROM_SOURCE "Build OpenImageDenoise or use pre-built version?" ON)
option(DOWNLOAD_ISPC "Download ISPC or use the one found in the system environment?" ON)

if (DOWNLOAD_ISPC AND BUILD_OIDN_FROM_SOURCE)
set(ISPC_VERSION "1.24.0" CACHE STRING "Which version of ISPC to download?")
mark_as_advanced(CLEAR ISPC_VERSION)
Expand Down

0 comments on commit 8aac632

Please sign in to comment.