Fix the CMake build on systems that lack a C++ compiler.
libarchive doesn't need C++, so we should be able to build on systems that don't have a C++ compiler. SVN-Revision: 1071
This commit is contained in:
1 parent
b084211bdc
commit
fccf5c27d3
4 files changed
+6
-6
No files matched your search
+1
-1
@@ -1,6 +1,6 @@
|
||||
#
|
||||
#
|
||||
PROJECT(libarchive)
|
||||
PROJECT(libarchive C)
|
||||
#
|
||||
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.1)
|
||||
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/build/cmake")
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
|
||||
INCLUDE(CheckCXXSourceCompiles)
|
||||
#INCLUDE(CheckCXXSourceCompiles)
|
||||
|
||||
MACRO (CHECK_FILE_OFFSET_BITS)
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
|
||||
INCLUDE(CheckCXXSourceCompiles)
|
||||
INCLUDE(CheckCSourceCompiles)
|
||||
|
||||
MACRO (CHECK_STRUCT_MEMBER _STRUCT _MEMBER _HEADER _RESULT)
|
||||
SET(_INCLUDE_FILES)
|
||||
@@ -37,7 +37,7 @@ int main()
|
||||
return 0;
|
||||
}
|
||||
")
|
||||
CHECK_CXX_SOURCE_COMPILES("${_CHECK_STRUCT_MEMBER_SOURCE_CODE}" ${_RESULT})
|
||||
CHECK_C_SOURCE_COMPILES("${_CHECK_STRUCT_MEMBER_SOURCE_CODE}" ${_RESULT})
|
||||
|
||||
ENDMACRO (CHECK_STRUCT_MEMBER)
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
|
||||
|
||||
|
||||
INCLUDE(CheckCXXSourceCompiles)
|
||||
INCLUDE(CheckCSourceCompiles)
|
||||
|
||||
MACRO (CHECK_TYPE_EXISTS _TYPE _HEADER _RESULT)
|
||||
SET(_INCLUDE_FILES)
|
||||
@@ -36,7 +36,7 @@ int main()
|
||||
return 0;
|
||||
}
|
||||
")
|
||||
CHECK_CXX_SOURCE_COMPILES("${_CHECK_TYPE_EXISTS_SOURCE_CODE}" ${_RESULT})
|
||||
CHECK_C_SOURCE_COMPILES("${_CHECK_TYPE_EXISTS_SOURCE_CODE}" ${_RESULT})
|
||||
|
||||
ENDMACRO (CHECK_TYPE_EXISTS)
|
||||
|
||||
Reference in new issue
Block a user