Skip to content

Commit

Permalink
Another attempt to fix running tests for NMake builds
Browse files Browse the repository at this point in the history
  • Loading branch information
qris committed Oct 25, 2018
1 parent 9a9ee26 commit d11944f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions infrastructure/cmake/CMakeLists.txt
Expand Up @@ -194,9 +194,10 @@ endforeach()
set(testmain_template_cpp
"${base_dir}/infrastructure/buildenv-testmain-template.cpp"
)
set(release_or_debug_dir
"${base_dir}/$<$<CONFIG:Debug>:debug>$<$<CONFIG:Release>:release>$<$<CONFIG:RelWithDebInfo>:release>"
set(release_or_debug
"$<$<CONFIG:Debug>:debug>$<$<CONFIG:Release>:release>$<$<CONFIG:RelWithDebInfo>:release>"
)
set(release_or_debug_dir "${base_dir}/${release_or_debug}")

if(WIN32)
set(time_test_command_prefix "")
Expand Down Expand Up @@ -288,12 +289,10 @@ foreach(module_dep ${module_deps})

if(generator_is_multi_config)
set(runtest_pl_test_mode_arg
$<$<CONFIG:Debug>:DEBUG>
$<$<CONFIG:Release>:RELEASE>
$<$<CONFIG:RelWithDebInfo>:RELEASE>
$<$<CONFIG:Debug>:DEBUG>$<$<CONFIG:Release>:RELEASE>$<$<CONFIG:RelWithDebInfo>:RELEASE>
)
else()
set(runtest_pl_test_mode_arg ${CMAKE_BUILD_TYPE})
set(runtest_pl_test_mode_arg ${release_or_debug})
endif()

if(WIN32)
Expand Down

0 comments on commit d11944f

Please sign in to comment.