Changeset View
Changeset View
Standalone View
Standalone View
src/core/CMakeLists.txt
Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Line(s) | 154 | if(ACL_FOUND) | |||
---|---|---|---|---|---|
155 | target_link_libraries(KF5KIOCore PRIVATE ${ACL_LIBS}) | 155 | target_link_libraries(KF5KIOCore PRIVATE ${ACL_LIBS}) | ||
156 | endif() | 156 | endif() | ||
157 | 157 | | |||
158 | set_target_properties(KF5KIOCore PROPERTIES VERSION ${KIO_VERSION_STRING} | 158 | set_target_properties(KF5KIOCore PROPERTIES VERSION ${KIO_VERSION_STRING} | ||
159 | SOVERSION ${KIO_SOVERSION} | 159 | SOVERSION ${KIO_SOVERSION} | ||
160 | EXPORT_NAME KIOCore | 160 | EXPORT_NAME KIOCore | ||
161 | ) | 161 | ) | ||
162 | 162 | | |||
163 | # this should be done by cmake, see bug 371721 | ||||
164 | if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||||
165 | add_custom_command( | ||||
dfaure: Shouldn't that be a rule with dependencies, so that it's not executed at every run of cmake? Or… | |||||
166 | OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/moc_predefs.h | ||||
167 | COMMAND "${CMAKE_CXX_COMPILER}" "-dM" "-E" "-c" "${CMAKE_ROOT}/Modules/CMakeCXXCompilerABI.cpp" > ${CMAKE_CURRENT_BINARY_DIR}/moc_predefs.h | ||||
168 | ) | ||||
169 | set_property(TARGET KF5KIOCore APPEND PROPERTY AUTOMOC_MOC_OPTIONS --include ${CMAKE_CURRENT_BINARY_DIR}/moc_predefs.h) | ||||
170 | set_property(TARGET KF5KIOCore APPEND PROPERTY AUTOGEN_TARGET_DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/moc_predefs.h) | ||||
171 | endif() | ||||
172 | | ||||
163 | # Headers prefixed with KIO/ | 173 | # Headers prefixed with KIO/ | ||
164 | ecm_generate_headers(KIOCore_CamelCase_HEADERS | 174 | ecm_generate_headers(KIOCore_CamelCase_HEADERS | ||
165 | HEADER_NAMES | 175 | HEADER_NAMES | ||
166 | IdleSlave | 176 | IdleSlave | ||
167 | ConnectionServer | 177 | ConnectionServer | ||
168 | TCPSlaveBase | 178 | TCPSlaveBase | ||
169 | DirectorySizeJob | 179 | DirectorySizeJob | ||
170 | ForwardingSlaveBase | 180 | ForwardingSlaveBase | ||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |
Shouldn't that be a rule with dependencies, so that it's not executed at every run of cmake? Or maybe just "if moc_predefs.h doesn't exist then..."