Browse Source

Test: prefix VersionTest with repo name to avoid conflicts.

Would break due to a conflicting target name / executable in subproject
setups that enable BUILD_TESTS.
pull/11/head
Vladimír Vondruš 5 years ago
parent
commit
05e0bb764a
  1. 6
      src/Magnum/Test/CMakeLists.txt

6
src/Magnum/Test/CMakeLists.txt

@ -23,5 +23,7 @@
# DEALINGS IN THE SOFTWARE.
#
corrade_add_test(VersionTest VersionTest.cpp)
target_include_directories(VersionTest PRIVATE ${PROJECT_BINARY_DIR}/src)
# Prefixed with project name to avoid conflicts with VersionTest in Magnum and
# related repos
corrade_add_test(MagnumBindingsVersionTest VersionTest.cpp)
target_include_directories(MagnumBindingsVersionTest PRIVATE ${PROJECT_BINARY_DIR}/src)

Loading…
Cancel
Save