Assure compatibility with gcc 4.3
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1375 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
ca452b8c0b
commit
b4763185cb
9 changed files with 139 additions and 79 deletions
|
|
@ -74,27 +74,28 @@ ENDFOREACH (test)
|
|||
|
||||
IF(ENABLE_MINIMAL_CMAKE_TESTING)
|
||||
|
||||
SET (MIN_TEST_LIST t-MultiStart)
|
||||
|
||||
SET (MIN_TEST_LIST t-MultiStart)
|
||||
|
||||
FOREACH (testrun ${TEST_RUN})
|
||||
FOREACH (testrun ${TEST_RUN})
|
||||
ADD_EXECUTABLE(${testrun} ${T_${testrun}_SOURCES})
|
||||
ADD_TEST(${testrun} ${testrun})
|
||||
ENDFOREACH (testrun)
|
||||
|
||||
FOREACH (mintest ${MIN_TEST_LIST})
|
||||
FOREACH (mintest ${MIN_TEST_LIST})
|
||||
SET ("T_${mintest}_SOURCES" "${mintest}.cpp")
|
||||
ADD_EXECUTABLE(${mintest} ${T_${mintest}_SOURCES})
|
||||
ADD_TEST(${mintest} "mpiexec" "-n" "4" "${CMAKE_CURRENT_BINARY_DIR}/${mintest}" "@param")
|
||||
TARGET_LINK_LIBRARIES(${mintest} peo ${XML2_LIBS} rmc_mpi ga es eoutils eo peo)
|
||||
ENDFOREACH (mintest)
|
||||
ENDFOREACH (mintest)
|
||||
|
||||
FOREACH (teststop ${TEST_STOP})
|
||||
FOREACH (teststop ${TEST_STOP})
|
||||
ADD_EXECUTABLE(${teststop} ${T_${teststop}_SOURCES})
|
||||
ADD_TEST(${teststop} ${teststop})
|
||||
ENDFOREACH (teststop)
|
||||
ENDFOREACH (teststop)
|
||||
|
||||
ELSEIF(ENABLE_CMAKE_TESTING)
|
||||
|
||||
|
||||
FOREACH (test ${TEST_RUN} ${TEST_LIST} ${TEST_STOP})
|
||||
ADD_EXECUTABLE(${test} ${T_${test}_SOURCES})
|
||||
ENDFOREACH (test)
|
||||
|
|
@ -110,10 +111,10 @@ ELSEIF(ENABLE_CMAKE_TESTING)
|
|||
FOREACH (teststop ${TEST_STOP})
|
||||
ADD_TEST(${teststop} ${teststop})
|
||||
ENDFOREACH (teststop)
|
||||
|
||||
|
||||
FOREACH (test ${TEST_LIST})
|
||||
TARGET_LINK_LIBRARIES(${test} peo ${XML2_LIBS} rmc_mpi ga es eoutils eo peo)
|
||||
ENDFOREACH (test)
|
||||
ENDFOREACH (test)
|
||||
|
||||
ENDIF(ENABLE_MINIMAL_CMAKE_TESTING)
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,6 @@
|
|||
|
||||
<node name="1" num_workers="0">
|
||||
<runner>1</runner>
|
||||
<runner>2</runner>
|
||||
</node>
|
||||
|
||||
<node name="2" num_workers="1">
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main (int __argc, char *__argv[])
|
||||
{
|
||||
system("mpdallexit");
|
||||
int success = system("mpdallexit");
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,8 +35,9 @@
|
|||
*/
|
||||
|
||||
#include <iostream>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main (int __argc, char *__argv[])
|
||||
{
|
||||
system("mpdboot");
|
||||
int success = system("mpdboot");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue