cmake compiled jrtplib being given at test_big_endian

【Problem Description】

The C compiler identification is MSVC 16.0.30319.1

The CXX compiler identification is MSVC 16.0.30319.1

Check if the system is big endian

Searching 16 bit integer

CMake Error at C:/Program Files/CMake 2.8/share/cmake-2.8/Modules/TestBigEndian.cmake:44 (message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:70 (test_big_endian)


[Solutions] progress is king, without understanding:

Reference http://www.ogre3d.org/forums/viewtopic.php?f=2&t=54782


Under the root directory CMakeLists.txt jrtplib-3.9.1 Note the following statement:

if (CMAKE_CROSSCOMPILING)
	option (JRTPLIB_USE_BIGENDIAN "Target platform is big endian" FALSE)
	if (JRTPLIB_USE_BIGENDIAN)
		set(RTP_ENDIAN "#define RTP_BIG_ENDIAN")
	else (JRTPLIB_USE_BIGENDIAN)
		set(RTP_ENDIAN "// Little endian system")
	endif (JRTPLIB_USE_BIGENDIAN)
else (CMAKE_CROSSCOMPILING)
	#test_big_endian(JRTPLIB_BIGENDIAN)
	#if (JRTPLIB_BIGENDIAN)
	#	set(RTP_ENDIAN "#define RTP_BIG_ENDIAN")
	#else (JRTPLIB_BIGENDIAN)
		set(RTP_ENDIAN "// Little endian system")
	#endif (JRTPLIB_BIGENDIAN)
endif (CMAKE_CROSSCOMPILING)


jrtplib Compiler Reference http://www.cnblogs.com/skyseraph/archive/2012/04/07/2435540.html


Published 45 original articles · won praise 13 · Views 140,000 +

Guess you like

Origin blog.csdn.net/shineych/article/details/18222573