Commit 861fad80 authored by jcfr's avatar jcfr

COMP: Consider executable suffix when setting Slicer_LAUNCHER_EXECUTABLE

Fix EMSegment tests failing on windows with the following error message:

  "error: Failed to obtain launcher executable name !"

The concerned tests are:
  EMSegCL_RunDefaultNodes
  EMSegCL_RunSetEverything
  EMSeg_MRML_DiffDefaultNodes
  EMSeg_MRML_DiffReadWriteNodes

git-svn-id: http://svn.slicer.org/Slicer4/trunk@21267 3bd1e089-480b-0410-8dfb-8563597acbee
parent 1a2092ae
......@@ -533,7 +533,7 @@ set(Slicer_ExternalData_URL_TEMPLATES ${ExternalData_URL_TEMPLATES})
#-----------------------------------------------------------------------------
# Testing
#-----------------------------------------------------------------------------
set(Slicer_LAUNCHER_EXECUTABLE ${Slicer_BINARY_DIR}/${Slicer_MAIN_PROJECT_APPLICATION_NAME})
set(Slicer_LAUNCHER_EXECUTABLE ${Slicer_BINARY_DIR}/${Slicer_MAIN_PROJECT_APPLICATION_NAME}${CMAKE_EXECUTABLE_SUFFIX})
set(Slicer_LAUNCH_COMMAND ${Slicer_LAUNCHER_EXECUTABLE} --launcher-no-splash --launch)
if(BUILD_TESTING)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment