parent
8576d61989
commit
5484f1bc0c
|
@ -742,8 +742,9 @@ IF(BUILD_TESTING)
|
|||
ENDIF(SDCC_EXECUTABLE)
|
||||
|
||||
|
||||
FIND_PROGRAM(MINGW_LINUX2WIN_EXECUTABLE i586-mingw32msvc-gcc)
|
||||
IF(MINGW_LINUX2WIN_EXECUTABLE)
|
||||
FIND_PROGRAM(MINGW_CC_LINUX2WIN_EXECUTABLE i586-mingw32msvc-gcc)
|
||||
FIND_PROGRAM(MINGW_CXX_LINUX2WIN_EXECUTABLE i586-mingw32msvc-g++)
|
||||
IF(MINGW_CC_LINUX2WIN_EXECUTABLE AND MINGW_CXX_LINUX2WIN_EXECUTABLE)
|
||||
ADD_TEST(Simple_Mingw_Linux2Win ${CMAKE_CTEST_COMMAND}
|
||||
--build-and-test
|
||||
"${CMake_SOURCE_DIR}/Tests/Simple"
|
||||
|
@ -753,8 +754,9 @@ IF(BUILD_TESTING)
|
|||
--build-makeprogram ${CMAKE_TEST_MAKEPROGRAM}
|
||||
--build-options
|
||||
"-DCMAKE_SYSTEM_NAME=Windows"
|
||||
"-DCMAKE_C_COMPILER=${MINGW_LINUX2WIN_EXECUTABLE}")
|
||||
ENDIF(MINGW_LINUX2WIN_EXECUTABLE)
|
||||
"-DCMAKE_C_COMPILER=${MINGW_CC_LINUX2WIN_EXECUTABLE}"
|
||||
"-DCMAKE_CXX_COMPILER=${MINGW_CXX_LINUX2WIN_EXECUTABLE}")
|
||||
ENDIF(MINGW_CC_LINUX2WIN_EXECUTABLE AND MINGW_CXX_LINUX2WIN_EXECUTABLE)
|
||||
|
||||
|
||||
ENDIF(CMAKE_TEST_GENERATOR MATCHES "Makefiles" OR CMAKE_TEST_GENERATOR MATCHES "KDevelop")
|
||||
|
|
Loading…
Reference in New Issue