Skip to content

Commit

Permalink
test: [mp-app] fix for ctest run on Windows with msbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
tkanteck authored and pablodelara committed Jul 1, 2024
1 parent 797db91 commit dfb66ca
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/mp-app/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,12 @@ else()
set(TEST_APP_BIN_DIR "${CMAKE_CURRENT_BINARY_DIR}")
endif()

# append config type for multi-config generators
get_property(multi_config_gen GLOBAL PROPERTY GENERATOR_IS_MULTI_CONFIG)
if (multi_config_gen)
STRING(APPEND TEST_APP_BIN_DIR "/$<IF:$<CONFIG:Debug>,Debug,Release>")
endif()

add_test(NAME MULTIPROCESS
COMMAND ${MP_APP_PRI} ${TEST_APP_BIN_DIR}/${MP_APP_SEC}
WORKING_DIRECTORY ${TEST_APP_BIN_DIR})

0 comments on commit dfb66ca

Please sign in to comment.