This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Expand file tree Collapse file tree 2 files changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
7
7
set (CMAKE_C_FLAGS "-std=c11" )
8
8
set (CMAKE_CXX_FLAGS "-std=c++11" )
9
9
set (CMAKE_SHARED_LIBRARY_PREFIX "" )
10
- add_compile_options (-Wall -Werror -fPIC )
10
+
11
+ add_compile_options (-Wall )
12
+ add_compile_options (-Werror )
13
+ add_compile_options (-fPIC )
11
14
12
15
if (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL amd64 )
13
16
add_definitions (-DBIT64=1 )
Original file line number Diff line number Diff line change 1
1
include (CheckFunctionExists )
2
2
include (CheckStructHasMember )
3
3
4
- check_function_exists (stat64 HAVE_STAT64 )
5
- check_struct_has_member ("struct stat" st_birthtime "sys/types.h;sys/stat.h" HAVE_STAT_BIRTHTIME )
4
+ check_function_exists (
5
+ stat64
6
+ HAVE_STAT64 )
6
7
7
- configure_file (${CMAKE_CURRENT_SOURCE_DIR} /config.h.in ${CMAKE_CURRENT_BINARY_DIR} /config.h )
8
+ check_struct_has_member (
9
+ "struct stat"
10
+ st_birthtime
11
+ "sys/types.h;sys/stat.h"
12
+ HAVE_STAT_BIRTHTIME )
13
+
14
+ configure_file (
15
+ ${CMAKE_CURRENT_SOURCE_DIR} /config.h.in
16
+ ${CMAKE_CURRENT_BINARY_DIR} /config.h )
You can’t perform that action at this time.
0 commit comments