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
parent
d4579ba653
commit
184fdb997e
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue