mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
db118e7998
Setting `-DENABLE_UTILS=0 -DENABLE_TESTS=1` causes CMake errors due to tests/utils/CMakeLists.txt referencing `$<TARGET_FILE:transmission-show>` which is undefined. Fixed by including the tests/utils/ directory only if `ENABLE_UTILS` is true.
5 lines
111 B
CMake
5 lines
111 B
CMake
add_subdirectory(gtest)
|
|
add_subdirectory(libtransmission)
|
|
if(ENABLE_UTILS)
|
|
add_subdirectory(utils)
|
|
endif()
|