Do not add the test directory if standalone and not building with LL_TESTS.

This fixes a cmake error:

CMake Error at test/CMakeLists.txt:112 (SET_TEST_PATH):
  Unknown CMake command "SET_TEST_PATH".

Even though the cmake file with the marcro is included.
master
Techwolf Lupindo 2012-02-12 14:29:50 -05:00
parent d4579ba653
commit 184fdb997e
1 changed files with 4 additions and 2 deletions

View File

@ -69,8 +69,10 @@ if (VIEWER)
add_subdirectory(${LIBS_OPEN_PREFIX}llxuixml)
add_subdirectory(${LIBS_OPEN_PREFIX}viewer_components)
# Legacy C++ tests. Build always, run if LL_TESTS is true.
add_subdirectory(${VIEWER_PREFIX}test)
if (LL_TESTS OR NOT STANDALONE)
# Legacy C++ tests. Build always, run if LL_TESTS is true.
add_subdirectory(${VIEWER_PREFIX}test)
endif (LL_TESTS OR NOT STANDALONE)
# viewer media plugins
add_subdirectory(${LIBS_OPEN_PREFIX}media_plugins)