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.

35 lines
1.0 KiB

  1. --- a/CMakeLists.txt
  2. +++ b/CMakeLists.txt
  3. @@ -35,10 +35,6 @@ include(DefineInstallationPaths)
  4. include(DefineOptions.cmake)
  5. include(CPackConfig.cmake)
  6. -# disallow in-source build
  7. -include(MacroEnsureOutOfSourceBuild)
  8. -macro_ensure_out_of_source_build("${PROJECT_NAME} requires an out of source build. Please create a separate build directory and run 'cmake /path/to/${PROJECT_NAME} [options]' there.")
  9. -
  10. # search for libraries
  11. if (WITH_ZLIB)
  12. find_package(ZLIB REQUIRED)
  13. --- a/ConfigureChecks.cmake
  14. +++ b/ConfigureChecks.cmake
  15. @@ -5,7 +5,6 @@ include(CheckFunctionExists)
  16. include(CheckLibraryExists)
  17. include(CheckTypeSize)
  18. include(CheckCXXSourceCompiles)
  19. -include(TestBigEndian)
  20. set(PACKAGE ${APPLICATION_NAME})
  21. set(VERSION ${APPLICATION_VERSION})
  22. @@ -270,6 +269,8 @@ if (WITH_GSSAPI AND NOT GSSAPI_FOUND)
  23. endif (WITH_GSSAPI AND NOT GSSAPI_FOUND)
  24. # ENDIAN
  25. -if (NOT WIN32)
  26. - test_big_endian(WORDS_BIGENDIAN)
  27. -endif (NOT WIN32)
  28. +if (WITH_BIG_ENDIAN)
  29. + set(WORDS_BIGENDIAN 1)
  30. +else (WITH_BIG_ENDIAN)
  31. + set(WORDS_BIGENDIAN 0)
  32. +endif (WITH_BIG_ENDIAN)