Commit 3a7eb55a by Stefan Philips

[FIX] Exclude WVersion.h from automoc to suppress cmake warning CMP0071

which comes with cmake version 3.10
parent bbbe6ed0
......@@ -102,6 +102,9 @@ COLLECT_COMPILE_FILES( "${CMAKE_CURRENT_SOURCE_DIR}" TARGET_CPP_FILES TARGET_H_F
SET( CMAKE_AUTOMOC ON )
SET( AUTOMOC_MOC_OPTIONS "${OW_CPP_FLAGS_INJECT}" )
# Exclude autogenerated WVersion.h (usally in versionHeader/core) from AUTOMOC mechanism to avoid cmake warning CMP0071 which comes with cmake version 3.10.
SET_PROPERTY(SOURCE "${CMAKE_BINARY_DIR}/${OW_VERSION_HEADER_DIRECTORY_RELATIVE}/${OW_INTERNAL_VERSION_HEADER_FILENAME}" PROPERTY SKIP_AUTOMOC ON)
# This is needed since the mocs will be generated there
INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment