aboutsummaryrefslogtreecommitdiff
path: root/third_party
diff options
context:
space:
mode:
authorJaebaek Seo <jaebaek@google.com>2019-07-24 16:12:59 -0400
committerGitHub <noreply@github.com>2019-07-24 16:12:59 -0400
commit6bdbb5fa50b1b82b0676cf9a91729c0f0f7f9e14 (patch)
treedfc35b0e7aeb05404f49543b3dd60ce9448771ef /third_party
parent6e5c1c43ab8caf2ede9a75d8037c1715c2ce8a0f (diff)
downloadamber-6bdbb5fa50b1b82b0676cf9a91729c0f0f7f9e14.tar.gz
Optional PNG support (#596)
As discussed in #591, this CL sets lodepng as an optional library.
Diffstat (limited to 'third_party')
-rw-r--r--third_party/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/CMakeLists.txt b/third_party/CMakeLists.txt
index f23cdb0..db865ad 100644
--- a/third_party/CMakeLists.txt
+++ b/third_party/CMakeLists.txt
@@ -41,7 +41,7 @@ if (${AMBER_ENABLE_SHADERC})
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/shaderc)
endif()
-if (${AMBER_ENABLE_SAMPLES})
+if (${AMBER_ENABLE_SAMPLES} AND ${AMBER_ENABLE_LODEPNG})
# Lodepng
set(LODEPNG_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/lodepng/lodepng.cpp)
add_library(lodepng STATIC ${LODEPNG_SOURCES})