Skip to content

Commit

Permalink
Tutorials do not link against libjpeg and libpng by default if these …
Browse files Browse the repository at this point in the history
…libraries are installed. This way our release builds do not risk to depend on these unimportant libraries.
  • Loading branch information
svenwoop committed Sep 22, 2020
1 parent b895374 commit b62a7b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tutorials/common/image/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ IF (EMBREE_TUTORIALS_OPENIMAGEIO)
ENDIF (EMBREE_TUTORIALS_OPENIMAGEIO)

FIND_PACKAGE(JPEG)
CMAKE_DEPENDENT_OPTION(EMBREE_TUTORIALS_LIBJPEG "Enables JPEG image codec." ON "EMBREE_TUTORIALS AND JPEG_FOUND" OFF)
CMAKE_DEPENDENT_OPTION(EMBREE_TUTORIALS_LIBJPEG "Enables JPEG image codec." OFF "EMBREE_TUTORIALS AND JPEG_FOUND" OFF)
IF (EMBREE_TUTORIALS_LIBJPEG)
ADD_DEFINITIONS(-DEMBREE_TUTORIALS_LIBJPEG)
INCLUDE_DIRECTORIES(${JPEG_INCLUDE_DIR})
Expand All @@ -28,7 +28,7 @@ IF (EMBREE_TUTORIALS_LIBJPEG)
ENDIF (EMBREE_TUTORIALS_LIBJPEG)

FIND_PACKAGE(PNG)
CMAKE_DEPENDENT_OPTION(EMBREE_TUTORIALS_LIBPNG "Enables PNG image codecs." ON "EMBREE_TUTORIALS AND PNG_FOUND" OFF)
CMAKE_DEPENDENT_OPTION(EMBREE_TUTORIALS_LIBPNG "Enables PNG image codecs." OFF "EMBREE_TUTORIALS AND PNG_FOUND" OFF)
IF (EMBREE_TUTORIALS_LIBPNG)
ADD_DEFINITIONS(-DEMBREE_TUTORIALS_LIBPNG)
INCLUDE_DIRECTORIES(${PNG_INCLUDE_DIR})
Expand Down

0 comments on commit b62a7b6

Please sign in to comment.