You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

477 lines
18 KiB

  1. macro(ei_add_property prop value)
  2. get_property(previous GLOBAL PROPERTY ${prop})
  3. if ((NOT previous) OR (previous STREQUAL ""))
  4. set_property(GLOBAL PROPERTY ${prop} "${value}")
  5. else()
  6. set_property(GLOBAL PROPERTY ${prop} "${previous} ${value}")
  7. endif()
  8. endmacro(ei_add_property)
  9. #internal. See documentation of ei_add_test for details.
  10. macro(ei_add_test_internal testname testname_with_suffix)
  11. set(targetname ${testname_with_suffix})
  12. set(filename ${testname}.cpp)
  13. add_executable(${targetname} ${filename})
  14. if (targetname MATCHES "^eigen2_")
  15. add_dependencies(eigen2_buildtests ${targetname})
  16. else()
  17. add_dependencies(buildtests ${targetname})
  18. endif()
  19. if(EIGEN_NO_ASSERTION_CHECKING)
  20. ei_add_target_property(${targetname} COMPILE_FLAGS "-DEIGEN_NO_ASSERTION_CHECKING=1")
  21. else(EIGEN_NO_ASSERTION_CHECKING)
  22. if(EIGEN_DEBUG_ASSERTS)
  23. ei_add_target_property(${targetname} COMPILE_FLAGS "-DEIGEN_DEBUG_ASSERTS=1")
  24. endif(EIGEN_DEBUG_ASSERTS)
  25. endif(EIGEN_NO_ASSERTION_CHECKING)
  26. ei_add_target_property(${targetname} COMPILE_FLAGS "-DEIGEN_TEST_MAX_SIZE=${EIGEN_TEST_MAX_SIZE}")
  27. ei_add_target_property(${targetname} COMPILE_FLAGS "-DEIGEN_TEST_FUNC=${testname}")
  28. if(MSVC AND NOT EIGEN_SPLIT_LARGE_TESTS)
  29. ei_add_target_property(${targetname} COMPILE_FLAGS "/bigobj")
  30. endif()
  31. # let the user pass flags.
  32. if(${ARGC} GREATER 2)
  33. ei_add_target_property(${targetname} COMPILE_FLAGS "${ARGV2}")
  34. endif(${ARGC} GREATER 2)
  35. if(EIGEN_TEST_CUSTOM_CXX_FLAGS)
  36. ei_add_target_property(${targetname} COMPILE_FLAGS "${EIGEN_TEST_CUSTOM_CXX_FLAGS}")
  37. endif()
  38. if(EIGEN_STANDARD_LIBRARIES_TO_LINK_TO)
  39. target_link_libraries(${targetname} ${EIGEN_STANDARD_LIBRARIES_TO_LINK_TO})
  40. endif()
  41. if(EXTERNAL_LIBS)
  42. target_link_libraries(${targetname} ${EXTERNAL_LIBS})
  43. endif()
  44. if(EIGEN_TEST_CUSTOM_LINKER_FLAGS)
  45. target_link_libraries(${targetname} ${EIGEN_TEST_CUSTOM_LINKER_FLAGS})
  46. endif()
  47. if(${ARGC} GREATER 3)
  48. set(libs_to_link ${ARGV3})
  49. # it could be that some cmake module provides a bad library string " " (just spaces),
  50. # and that severely breaks target_link_libraries ("can't link to -l-lstdc++" errors).
  51. # so we check for strings containing only spaces.
  52. string(STRIP "${libs_to_link}" libs_to_link_stripped)
  53. string(LENGTH "${libs_to_link_stripped}" libs_to_link_stripped_length)
  54. if(${libs_to_link_stripped_length} GREATER 0)
  55. # notice: no double quotes around ${libs_to_link} here. It may be a list.
  56. target_link_libraries(${targetname} ${libs_to_link})
  57. endif()
  58. endif()
  59. if(EIGEN_BIN_BASH_EXISTS)
  60. add_test(${testname_with_suffix} "${Eigen_SOURCE_DIR}/test/runtest.sh" "${testname_with_suffix}")
  61. else()
  62. add_test(${testname_with_suffix} "${targetname}")
  63. endif()
  64. endmacro(ei_add_test_internal)
  65. # Macro to add a test
  66. #
  67. # the unique mandatory parameter testname must correspond to a file
  68. # <testname>.cpp which follows this pattern:
  69. #
  70. # #include "main.h"
  71. # void test_<testname>() { ... }
  72. #
  73. # Depending on the contents of that file, this macro can have 2 behaviors,
  74. # see below.
  75. #
  76. # The optional 2nd parameter is libraries to link to.
  77. #
  78. # A. Default behavior
  79. #
  80. # this macro adds an executable <testname> as well as a ctest test
  81. # named <testname> too.
  82. #
  83. # On platforms with bash simply run:
  84. # "ctest -V" or "ctest -V -R <testname>"
  85. # On other platform use ctest as usual
  86. #
  87. # B. Multi-part behavior
  88. #
  89. # If the source file matches the regexp
  90. # CALL_SUBTEST_[0-9]+|EIGEN_TEST_PART_[0-9]+
  91. # then it is interpreted as a multi-part test. The behavior then depends on the
  92. # CMake option EIGEN_SPLIT_LARGE_TESTS, which is ON by default.
  93. #
  94. # If EIGEN_SPLIT_LARGE_TESTS is OFF, the behavior is the same as in A (the multi-part
  95. # aspect is ignored).
  96. #
  97. # If EIGEN_SPLIT_LARGE_TESTS is ON, the test is split into multiple executables
  98. # test_<testname>_<N>
  99. # where N runs from 1 to the greatest occurence found in the source file. Each of these
  100. # executables is built passing -DEIGEN_TEST_PART_N. This allows to split large tests
  101. # into smaller executables.
  102. #
  103. # Moreover, targets <testname> are still generated, they
  104. # have the effect of building all the parts of the test.
  105. #
  106. # Again, ctest -R allows to run all matching tests.
  107. macro(ei_add_test testname)
  108. get_property(EIGEN_TESTS_LIST GLOBAL PROPERTY EIGEN_TESTS_LIST)
  109. set(EIGEN_TESTS_LIST "${EIGEN_TESTS_LIST}${testname}\n")
  110. set_property(GLOBAL PROPERTY EIGEN_TESTS_LIST "${EIGEN_TESTS_LIST}")
  111. file(READ "${testname}.cpp" test_source)
  112. set(parts 0)
  113. string(REGEX MATCHALL "CALL_SUBTEST_[0-9]+|EIGEN_TEST_PART_[0-9]+|EIGEN_SUFFIXES(;[0-9]+)+"
  114. occurences "${test_source}")
  115. string(REGEX REPLACE "CALL_SUBTEST_|EIGEN_TEST_PART_|EIGEN_SUFFIXES" "" suffixes "${occurences}")
  116. list(REMOVE_DUPLICATES suffixes)
  117. if(EIGEN_SPLIT_LARGE_TESTS AND suffixes)
  118. add_custom_target(${testname})
  119. foreach(suffix ${suffixes})
  120. ei_add_test_internal(${testname} ${testname}_${suffix}
  121. "${ARGV1} -DEIGEN_TEST_PART_${suffix}=1" "${ARGV2}")
  122. add_dependencies(${testname} ${testname}_${suffix})
  123. endforeach(suffix)
  124. else(EIGEN_SPLIT_LARGE_TESTS AND suffixes)
  125. set(symbols_to_enable_all_parts "")
  126. foreach(suffix ${suffixes})
  127. set(symbols_to_enable_all_parts
  128. "${symbols_to_enable_all_parts} -DEIGEN_TEST_PART_${suffix}=1")
  129. endforeach(suffix)
  130. ei_add_test_internal(${testname} ${testname} "${ARGV1} ${symbols_to_enable_all_parts}" "${ARGV2}")
  131. endif(EIGEN_SPLIT_LARGE_TESTS AND suffixes)
  132. endmacro(ei_add_test)
  133. # adds a failtest, i.e. a test that succeed if the program fails to compile
  134. # note that the test runner for these is CMake itself, when passed -DEIGEN_FAILTEST=ON
  135. # so here we're just running CMake commands immediately, we're not adding any targets.
  136. macro(ei_add_failtest testname)
  137. get_property(EIGEN_FAILTEST_FAILURE_COUNT GLOBAL PROPERTY EIGEN_FAILTEST_FAILURE_COUNT)
  138. get_property(EIGEN_FAILTEST_COUNT GLOBAL PROPERTY EIGEN_FAILTEST_COUNT)
  139. message(STATUS "Checking failtest: ${testname}")
  140. set(filename "${testname}.cpp")
  141. file(READ "${filename}" test_source)
  142. try_compile(succeeds_when_it_should_fail
  143. "${CMAKE_CURRENT_BINARY_DIR}"
  144. "${CMAKE_CURRENT_SOURCE_DIR}/${filename}"
  145. COMPILE_DEFINITIONS "-DEIGEN_SHOULD_FAIL_TO_BUILD")
  146. if (succeeds_when_it_should_fail)
  147. message(STATUS "FAILED: ${testname} build succeeded when it should have failed")
  148. endif()
  149. try_compile(succeeds_when_it_should_succeed
  150. "${CMAKE_CURRENT_BINARY_DIR}"
  151. "${CMAKE_CURRENT_SOURCE_DIR}/${filename}"
  152. COMPILE_DEFINITIONS)
  153. if (NOT succeeds_when_it_should_succeed)
  154. message(STATUS "FAILED: ${testname} build failed when it should have succeeded")
  155. endif()
  156. if (succeeds_when_it_should_fail OR NOT succeeds_when_it_should_succeed)
  157. math(EXPR EIGEN_FAILTEST_FAILURE_COUNT ${EIGEN_FAILTEST_FAILURE_COUNT}+1)
  158. endif()
  159. math(EXPR EIGEN_FAILTEST_COUNT ${EIGEN_FAILTEST_COUNT}+1)
  160. set_property(GLOBAL PROPERTY EIGEN_FAILTEST_FAILURE_COUNT ${EIGEN_FAILTEST_FAILURE_COUNT})
  161. set_property(GLOBAL PROPERTY EIGEN_FAILTEST_COUNT ${EIGEN_FAILTEST_COUNT})
  162. endmacro(ei_add_failtest)
  163. # print a summary of the different options
  164. macro(ei_testing_print_summary)
  165. message(STATUS "************************************************************")
  166. message(STATUS "*** Eigen's unit tests configuration summary ***")
  167. message(STATUS "************************************************************")
  168. message(STATUS "")
  169. message(STATUS "Build type: ${CMAKE_BUILD_TYPE}")
  170. message(STATUS "Build site: ${SITE}")
  171. message(STATUS "Build string: ${BUILDNAME}")
  172. get_property(EIGEN_TESTING_SUMMARY GLOBAL PROPERTY EIGEN_TESTING_SUMMARY)
  173. get_property(EIGEN_TESTED_BACKENDS GLOBAL PROPERTY EIGEN_TESTED_BACKENDS)
  174. get_property(EIGEN_MISSING_BACKENDS GLOBAL PROPERTY EIGEN_MISSING_BACKENDS)
  175. message(STATUS "Enabled backends: ${EIGEN_TESTED_BACKENDS}")
  176. message(STATUS "Disabled backends: ${EIGEN_MISSING_BACKENDS}")
  177. if(EIGEN_DEFAULT_TO_ROW_MAJOR)
  178. message(STATUS "Default order: Row-major")
  179. else()
  180. message(STATUS "Default order: Column-major")
  181. endif()
  182. if(EIGEN_TEST_NO_EXPLICIT_ALIGNMENT)
  183. message(STATUS "Explicit alignment (hence vectorization) disabled")
  184. elseif(EIGEN_TEST_NO_EXPLICIT_VECTORIZATION)
  185. message(STATUS "Explicit vectorization disabled (alignment kept enabled)")
  186. else()
  187. message(STATUS "Maximal matrix/vector size: ${EIGEN_TEST_MAX_SIZE}")
  188. if(EIGEN_TEST_SSE2)
  189. message(STATUS "SSE2: ON")
  190. else()
  191. message(STATUS "SSE2: Using architecture defaults")
  192. endif()
  193. if(EIGEN_TEST_SSE3)
  194. message(STATUS "SSE3: ON")
  195. else()
  196. message(STATUS "SSE3: Using architecture defaults")
  197. endif()
  198. if(EIGEN_TEST_SSSE3)
  199. message(STATUS "SSSE3: ON")
  200. else()
  201. message(STATUS "SSSE3: Using architecture defaults")
  202. endif()
  203. if(EIGEN_TEST_SSE4_1)
  204. message(STATUS "SSE4.1: ON")
  205. else()
  206. message(STATUS "SSE4.1: Using architecture defaults")
  207. endif()
  208. if(EIGEN_TEST_SSE4_2)
  209. message(STATUS "SSE4.2: ON")
  210. else()
  211. message(STATUS "SSE4.2: Using architecture defaults")
  212. endif()
  213. if(EIGEN_TEST_ALTIVEC)
  214. message(STATUS "Altivec: ON")
  215. else()
  216. message(STATUS "Altivec: Using architecture defaults")
  217. endif()
  218. if(EIGEN_TEST_NEON)
  219. message(STATUS "ARM NEON: ON")
  220. else()
  221. message(STATUS "ARM NEON: Using architecture defaults")
  222. endif()
  223. endif() # vectorization / alignment options
  224. message(STATUS "\n${EIGEN_TESTING_SUMMARY}")
  225. message(STATUS "************************************************************")
  226. endmacro(ei_testing_print_summary)
  227. macro(ei_init_testing)
  228. define_property(GLOBAL PROPERTY EIGEN_TESTED_BACKENDS BRIEF_DOCS " " FULL_DOCS " ")
  229. define_property(GLOBAL PROPERTY EIGEN_MISSING_BACKENDS BRIEF_DOCS " " FULL_DOCS " ")
  230. define_property(GLOBAL PROPERTY EIGEN_TESTING_SUMMARY BRIEF_DOCS " " FULL_DOCS " ")
  231. define_property(GLOBAL PROPERTY EIGEN_TESTS_LIST BRIEF_DOCS " " FULL_DOCS " ")
  232. set_property(GLOBAL PROPERTY EIGEN_TESTED_BACKENDS "")
  233. set_property(GLOBAL PROPERTY EIGEN_MISSING_BACKENDS "")
  234. set_property(GLOBAL PROPERTY EIGEN_TESTING_SUMMARY "")
  235. set_property(GLOBAL PROPERTY EIGEN_TESTS_LIST "")
  236. define_property(GLOBAL PROPERTY EIGEN_FAILTEST_FAILURE_COUNT BRIEF_DOCS " " FULL_DOCS " ")
  237. define_property(GLOBAL PROPERTY EIGEN_FAILTEST_COUNT BRIEF_DOCS " " FULL_DOCS " ")
  238. set_property(GLOBAL PROPERTY EIGEN_FAILTEST_FAILURE_COUNT "0")
  239. set_property(GLOBAL PROPERTY EIGEN_FAILTEST_COUNT "0")
  240. # uncomment anytime you change the ei_get_compilerver_from_cxx_version_string macro
  241. # ei_test_get_compilerver_from_cxx_version_string()
  242. endmacro(ei_init_testing)
  243. macro(ei_set_sitename)
  244. # if the sitename is not yet set, try to set it
  245. if(NOT ${SITE} OR ${SITE} STREQUAL "")
  246. set(eigen_computername $ENV{COMPUTERNAME})
  247. set(eigen_hostname $ENV{HOSTNAME})
  248. if(eigen_hostname)
  249. set(SITE ${eigen_hostname})
  250. elseif(eigen_computername)
  251. set(SITE ${eigen_computername})
  252. endif()
  253. endif()
  254. # in case it is already set, enforce lower case
  255. if(SITE)
  256. string(TOLOWER ${SITE} SITE)
  257. endif()
  258. endmacro(ei_set_sitename)
  259. macro(ei_get_compilerver VAR)
  260. if(MSVC)
  261. # on windows system, we use a modified CMake script
  262. include(CMakeDetermineVSServicePack)
  263. DetermineVSServicePack( my_service_pack )
  264. if( my_service_pack )
  265. set(${VAR} ${my_service_pack})
  266. else()
  267. set(${VAR} "na")
  268. endif()
  269. else()
  270. # on all other system we rely on ${CMAKE_CXX_COMPILER}
  271. # supporting a "--version" flag
  272. execute_process(COMMAND ${CMAKE_CXX_COMPILER} --version
  273. COMMAND head -n 1
  274. OUTPUT_VARIABLE eigen_cxx_compiler_version_string OUTPUT_STRIP_TRAILING_WHITESPACE)
  275. ei_get_compilerver_from_cxx_version_string(${eigen_cxx_compiler_version_string} CNAME CVER)
  276. set(${VAR} "${CNAME}-${CVER}")
  277. endif()
  278. endmacro(ei_get_compilerver)
  279. # Extract compiler name and version from a raw version string
  280. # WARNING: if you edit thid macro, then please test it by uncommenting
  281. # the testing macro call in ei_init_testing() of the EigenTesting.cmake file.
  282. # See also the ei_test_get_compilerver_from_cxx_version_string macro at the end of the file
  283. macro(ei_get_compilerver_from_cxx_version_string VERSTRING CNAME CVER)
  284. # extract possible compiler names
  285. string(REGEX MATCH "g\\+\\+" ei_has_gpp ${VERSTRING})
  286. string(REGEX MATCH "llvm|LLVM" ei_has_llvm ${VERSTRING})
  287. string(REGEX MATCH "gcc|GCC" ei_has_gcc ${VERSTRING})
  288. string(REGEX MATCH "icpc|ICC" ei_has_icpc ${VERSTRING})
  289. string(REGEX MATCH "clang|CLANG" ei_has_clang ${VERSTRING})
  290. # combine them
  291. if((ei_has_llvm) AND (ei_has_gpp OR ei_has_gcc))
  292. set(${CNAME} "llvm-g++")
  293. elseif((ei_has_llvm) AND (ei_has_clang))
  294. set(${CNAME} "llvm-clang++")
  295. elseif(ei_has_icpc)
  296. set(${CNAME} "icpc")
  297. elseif(ei_has_gpp OR ei_has_gcc)
  298. set(${CNAME} "g++")
  299. else()
  300. set(${CNAME} "_")
  301. endif()
  302. # extract possible version numbers
  303. # first try to extract 3 isolated numbers:
  304. string(REGEX MATCH " [0-9]+\\.[0-9]+\\.[0-9]+" eicver ${VERSTRING})
  305. if(NOT eicver)
  306. # try to extract 2 isolated ones:
  307. string(REGEX MATCH " [0-9]+\\.[0-9]+" eicver ${VERSTRING})
  308. if(NOT eicver)
  309. # try to extract 3:
  310. string(REGEX MATCH "[^0-9][0-9]+\\.[0-9]+\\.[0-9]+" eicver ${VERSTRING})
  311. if(NOT eicver)
  312. # try to extract 2:
  313. string(REGEX MATCH "[^0-9][0-9]+\\.[0-9]+" eicver ${VERSTRING})
  314. else()
  315. set(eicver " _")
  316. endif()
  317. endif()
  318. endif()
  319. string(REGEX REPLACE ".(.*)" "\\1" ${CVER} ${eicver})
  320. endmacro(ei_get_compilerver_from_cxx_version_string)
  321. macro(ei_get_cxxflags VAR)
  322. set(${VAR} "")
  323. ei_is_64bit_env(IS_64BIT_ENV)
  324. if(EIGEN_TEST_NEON)
  325. set(${VAR} NEON)
  326. elseif(EIGEN_TEST_ALTIVEC)
  327. set(${VAR} ALVEC)
  328. elseif(EIGEN_TEST_SSE4_2)
  329. set(${VAR} SSE42)
  330. elseif(EIGEN_TEST_SSE4_1)
  331. set(${VAR} SSE41)
  332. elseif(EIGEN_TEST_SSSE3)
  333. set(${VAR} SSSE3)
  334. elseif(EIGEN_TEST_SSE3)
  335. set(${VAR} SSE3)
  336. elseif(EIGEN_TEST_SSE2 OR IS_64BIT_ENV)
  337. set(${VAR} SSE2)
  338. endif()
  339. if(EIGEN_TEST_OPENMP)
  340. if (${VAR} STREQUAL "")
  341. set(${VAR} OMP)
  342. else()
  343. set(${VAR} ${${VAR}}-OMP)
  344. endif()
  345. endif()
  346. if(EIGEN_DEFAULT_TO_ROW_MAJOR)
  347. if (${VAR} STREQUAL "")
  348. set(${VAR} ROW)
  349. else()
  350. set(${VAR} ${${VAR}}-ROWMAJ)
  351. endif()
  352. endif()
  353. endmacro(ei_get_cxxflags)
  354. macro(ei_set_build_string)
  355. ei_get_compilerver(LOCAL_COMPILER_VERSION)
  356. ei_get_cxxflags(LOCAL_COMPILER_FLAGS)
  357. include(EigenDetermineOSVersion)
  358. DetermineOSVersion(OS_VERSION)
  359. set(TMP_BUILD_STRING ${OS_VERSION}-${LOCAL_COMPILER_VERSION})
  360. if (NOT ${LOCAL_COMPILER_FLAGS} STREQUAL "")
  361. set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-${LOCAL_COMPILER_FLAGS})
  362. endif()
  363. ei_is_64bit_env(IS_64BIT_ENV)
  364. if(NOT IS_64BIT_ENV)
  365. set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-32bit)
  366. else()
  367. set(TMP_BUILD_STRING ${TMP_BUILD_STRING}-64bit)
  368. endif()
  369. string(TOLOWER ${TMP_BUILD_STRING} BUILDNAME)
  370. endmacro(ei_set_build_string)
  371. macro(ei_is_64bit_env VAR)
  372. file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/is64.cpp"
  373. "int main() { return (sizeof(int*) == 8 ? 1 : 0); }
  374. ")
  375. try_run(run_res compile_res
  376. ${CMAKE_CURRENT_BINARY_DIR} "${CMAKE_CURRENT_BINARY_DIR}/is64.cpp"
  377. RUN_OUTPUT_VARIABLE run_output)
  378. if(compile_res AND run_res)
  379. set(${VAR} ${run_res})
  380. elseif(CMAKE_CL_64)
  381. set(${VAR} 1)
  382. elseif("$ENV{Platform}" STREQUAL "X64") # nmake 64 bit
  383. set(${VAR} 1)
  384. endif()
  385. endmacro(ei_is_64bit_env)
  386. # helper macro for testing ei_get_compilerver_from_cxx_version_string
  387. # STR: raw version string
  388. # REFNAME: expected compiler name
  389. # REFVER: expected compiler version
  390. macro(ei_test1_get_compilerver_from_cxx_version_string STR REFNAME REFVER)
  391. ei_get_compilerver_from_cxx_version_string(${STR} CNAME CVER)
  392. if((NOT ${REFNAME} STREQUAL ${CNAME}) OR (NOT ${REFVER} STREQUAL ${CVER}))
  393. message("STATUS ei_get_compilerver_from_cxx_version_string error:")
  394. message("Expected \"${REFNAME}-${REFVER}\", got \"${CNAME}-${CVER}\"")
  395. endif()
  396. endmacro(ei_test1_get_compilerver_from_cxx_version_string)
  397. # macro for testing ei_get_compilerver_from_cxx_version_string
  398. # feel free to add more version strings
  399. macro(ei_test_get_compilerver_from_cxx_version_string)
  400. ei_test1_get_compilerver_from_cxx_version_string("g++ (SUSE Linux) 4.5.3 20110428 [gcc-4_5-branch revision 173117]" "g++" "4.5.3")
  401. ei_test1_get_compilerver_from_cxx_version_string("c++ (GCC) 4.5.1 20100924 (Red Hat 4.5.1-4)" "g++" "4.5.1")
  402. ei_test1_get_compilerver_from_cxx_version_string("icpc (ICC) 11.0 20081105" "icpc" "11.0")
  403. ei_test1_get_compilerver_from_cxx_version_string("g++-3.4 (GCC) 3.4.6" "g++" "3.4.6")
  404. ei_test1_get_compilerver_from_cxx_version_string("SUSE Linux clang version 3.0 (branches/release_30 145598) (based on LLVM 3.0)" "llvm-clang++" "3.0")
  405. ei_test1_get_compilerver_from_cxx_version_string("icpc (ICC) 12.0.5 20110719" "icpc" "12.0.5")
  406. ei_test1_get_compilerver_from_cxx_version_string("Apple clang version 2.1 (tags/Apple/clang-163.7.1) (based on LLVM 3.0svn)" "llvm-clang++" "2.1")
  407. ei_test1_get_compilerver_from_cxx_version_string("i686-apple-darwin11-llvm-g++-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)" "llvm-g++" "4.2.1")
  408. ei_test1_get_compilerver_from_cxx_version_string("g++-mp-4.4 (GCC) 4.4.6" "g++" "4.4.6")
  409. ei_test1_get_compilerver_from_cxx_version_string("g++-mp-4.4 (GCC) 2011" "g++" "4.4")
  410. endmacro(ei_test_get_compilerver_from_cxx_version_string)