diff options
| author | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-14 17:00:44 -0600 |
|---|---|---|
| committer | Courtney Goeltzenleuchter <courtney@LunarG.com> | 2015-10-14 17:00:44 -0600 |
| commit | d71545eb0c7d48097e8e582a69e204e73fce820d (patch) | |
| tree | 966b92d016148dc607e8eaf4670e81c6bfee21c5 | |
| parent | ca7d99a2fdf83b221be1d3f1528485665a065f52 (diff) | |
| download | usermoji-d71545eb0c7d48097e8e582a69e204e73fce820d.tar.xz | |
cmake: Need glslang for tests as well as ICD
| -rw-r--r-- | CMakeLists.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 14f32733..32d75333 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -40,14 +40,18 @@ option(BUILD_LAYERS "Build layers" ON) option(BUILD_DEMOS "Build demos" ON) option(BUILD_VKTRACE "Build VkTrace" ON) -if (BUILD_ICD) - # Hard code our LunarGLASS and glslang paths for now +if (BUILD_ICD OR BUILD_TESTS) + # Hard code our glslang path for now get_filename_component(GLSLANG_PREFIX ../glslang ABSOLUTE) - get_filename_component(LUNARGLASS_PREFIX ../LunarGLASS ABSOLUTE) if(NOT EXISTS ${GLSLANG_PREFIX}) message(FATAL_ERROR "Necessary glslang components do not exist: " ${GLSLANG_PREFIX}) endif() +endif() + +if (BUILD_ICD) + # Hard code our LunarGLASS path for now + get_filename_component(LUNARGLASS_PREFIX ../LunarGLASS ABSOLUTE) if(NOT EXISTS ${LUNARGLASS_PREFIX}) message(FATAL_ERROR "Necessary LunarGLASS components do not exist: " ${LUNARGLASS_PREFIX}) |
