diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index b0ab19d8..89bce0c0 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -137,11 +137,11 @@ if (FMT_PEDANTIC) "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") # test if the targets are findable when add_subdirectory is used - add_test(add_subdirectory-test ${CMAKE_CTEST_COMMAND} + add_test(add-subdirectory-test ${CMAKE_CTEST_COMMAND} -C ${CMAKE_BUILD_TYPE} --build-and-test - "${CMAKE_CURRENT_SOURCE_DIR}/add_subdirectory-test" - "${CMAKE_CURRENT_BINARY_DIR}/add_subdirectory-test" + "${CMAKE_CURRENT_SOURCE_DIR}/add-subdirectory-test" + "${CMAKE_CURRENT_BINARY_DIR}/add-subdirectory-test" --build-generator ${CMAKE_GENERATOR} --build-makeprogram ${CMAKE_MAKE_PROGRAM} --build-options "-DCMAKE_BUILD_TYPE=${CMAKE_BUILD_TYPE}") diff --git a/test/add_subdirectory-test/CMakeLists.txt b/test/add-subdirectory-test/CMakeLists.txt similarity index 100% rename from test/add_subdirectory-test/CMakeLists.txt rename to test/add-subdirectory-test/CMakeLists.txt diff --git a/test/add_subdirectory-test/main.cpp b/test/add-subdirectory-test/main.cpp similarity index 100% rename from test/add_subdirectory-test/main.cpp rename to test/add-subdirectory-test/main.cpp