Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 899f247

Browse files
committed
Use more newlines in cmake files
1 parent bf0290c commit 899f247

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

src/Native/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@ set(CMAKE_INCLUDE_CURRENT_DIR ON)
77
set(CMAKE_C_FLAGS "-std=c11")
88
set(CMAKE_CXX_FLAGS "-std=c++11")
99
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)
1114

1215
if (CMAKE_SYSTEM_PROCESSOR STREQUAL x86_64 OR CMAKE_SYSTEM_PROCESSOR STREQUAL amd64)
1316
add_definitions(-DBIT64=1)

src/Native/configure.cmake

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
11
include(CheckFunctionExists)
22
include(CheckStructHasMember)
33

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)
67

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)

0 commit comments

Comments
 (0)