Added flag OPTION_OMP=false to build script to disable OpenMP if desired

This commit is contained in:
Wyatt Olson 2010-05-31 17:32:36 -06:00
parent de22e77a4b
commit 9ed043c2d7
2 changed files with 9 additions and 5 deletions

View File

@ -11,6 +11,7 @@ endif (APPLE)
option (BUILD_SHARED "Build rawtherapee with shared libraries" OFF)
option (WITH_RAWZOR "Build with Rawzor support" OFF)
option (OPTION_OMP "Build with OpenMP support" ON)
# set install directories
if (NOT DEFINED DATADIR)
@ -116,10 +117,12 @@ if (WITH_RAWZOR)
endif (WIN32)
endif (WITH_RAWZOR)
if (OPTION_OMP)
find_package(OpenMP)
if (OPENMP_FOUND)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif (OPENMP_FOUND)
endif (OPTION_OMP)
add_subdirectory (rtexif)
add_subdirectory (rtengine)

View File

@ -51,7 +51,8 @@ Requirements:
Compile:
- Enter root directory of RawTherapee source tree
- Type: cmake -D CMAKE_C_COMPILER=gcc-mp-4.5 -D CMAKE_CXX_COMPILER=g++-mp-4.5 .
- Type: cmake -D CMAKE_C_COMPILER=gcc-mp-4.5 -D CMAKE_CXX_COMPILER=g++-mp-4.5 . (to enable OpenMP) OR:
cmake -D OPTION_OMP=false (to disable OpenMP and use the older compiler)
- Type: make install
- Type: ./tools/osx/make-app-bundle
- You will find a RawTherapee.dmg file in release/ folder; this is the distribution release and can be run on any 10.5 or 10.6 Intel machine.