comparison OrthancFramework/Resources/ProtocolBuffers/ProtobufLibrary.cmake @ 5357:fddb5d8d0021

Prevent the leak of the full path of the source files in the binaries
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 06 Jul 2023 17:04:31 +0200
parents 4c6f0211caaf
children aa1c09fa6632
comparison
equal deleted inserted replaced
5354:65b4e6ae2703 5357:fddb5d8d0021
136 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wrappers.pb.cc 136 ${PROTOBUF_SOURCE_DIR}/src/google/protobuf/wrappers.pb.cc
137 ) 137 )
138 138
139 if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows") 139 if (NOT CMAKE_SYSTEM_NAME STREQUAL "Windows")
140 set_property( 140 set_property(
141 SOURCE ${PROTOBUF_LIBRARY_SOURCES} 141 SOURCE ${PROTOBUF_LIBRARY_SOURCES} APPEND
142 PROPERTY COMPILE_DEFINITIONS "HAVE_PTHREAD=1" 142 PROPERTY COMPILE_DEFINITIONS "HAVE_PTHREAD=1"
143 ) 143 )
144 endif() 144 endif()