diff options
author | Jaebaek Seo <jaebaek@google.com> | 2019-07-24 16:12:59 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-24 16:12:59 -0400 |
commit | 6bdbb5fa50b1b82b0676cf9a91729c0f0f7f9e14 (patch) | |
tree | dfc35b0e7aeb05404f49543b3dd60ce9448771ef /third_party | |
parent | 6e5c1c43ab8caf2ede9a75d8037c1715c2ce8a0f (diff) | |
download | amber-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.txt | 2 |
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}) |