File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,7 @@ if (CMAKE_COMPILER_IS_GNUCC)
37
37
38
38
# gcc >= 4.6
39
39
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-prototypes" )
40
+ set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-missing-field-initializers" )
40
41
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Winline")
41
42
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wconversion")
42
43
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wswitch-enum")
@@ -85,15 +86,22 @@ pkg_check_modules(GLIB2 REQUIRED glib-2.0 gthread-2.0 gmodule-2.0)
85
86
86
87
add_custom_target (
87
88
libdill_s
88
- ALL
89
- COMMAND mkdir -p ${CMAKE_BINARY_DIR} /vendor/sustrik/libdill
90
- COMMAND lndir ${CMAKE_SOURCE_DIR} /vendor/sustrik/libdill
91
89
COMMAND ./autogen.sh
92
90
COMMAND ./configure --enable-static --disable-shared
93
91
COMMAND make
94
92
WORKING_DIRECTORY ${CMAKE_BINARY_DIR} /vendor/sustrik/libdill
95
93
COMMENT "Building libdill" )
96
94
95
+ if (NOT (${CMAKE_BINARY_DIR} STREQUAL ${CMAKE_SOURCE_DIR} ))
96
+ add_custom_target (
97
+ libdill_source
98
+ COMMAND mkdir -p ${CMAKE_BINARY_DIR} /vendor/sustrik/libdill
99
+ COMMAND lndir ${CMAKE_SOURCE_DIR} /vendor/sustrik/libdill
100
+ WORKING_DIRECTORY ${CMAKE_BINARY_DIR} /vendor/sustrik/libdill
101
+ COMMENT "Preparing the source of libdill" )
102
+ add_dependencies (libdill_s libdill_source )
103
+ endif ()
104
+
97
105
set (CMAKE_LIBRARY_PATH "" )
98
106
set (CMAKE_INCLUDE_PATH "" )
99
107
include_directories (AFTER
You can’t perform that action at this time.
0 commit comments