gazebosim / gz-transport

Transport library for component communication based on publication/subscription and service calls.
https://gazebosim.org
Apache License 2.0
29 stars 37 forks source link

CMake (3.11.3) error in evaluation files cmdtransport and cmdlog #94

Open osrf-migration opened 6 years ago

osrf-migration commented 6 years ago

Original report (archived issue) by Jose Luis Rivero (Bitbucket: Jose Luis Rivero, GitHub: j-rivero).


The Window build using cmake (3.11.3) detected an error with multiple evaluation of a generated configuration files in test/lib/ruby/ignition/cmdtransport5.rb and test/lib/ruby/ignition/cmdlog5.rb. I can not find were is the origin of the multiple evaluation but if I comment the file generate command the error is gone (bbdccb410b6ac63fb7174ca346739358f36a4396).

https://build.osrfoundation.org/job/ign_gui_win/25/consoleFull

CMake Error in src/cmd/CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   D:/Jenkins/workspace/ign_gui_win/ws/build/ignition-transport5/test/lib/ruby/ignition/cmdtransport5.rb

CMake Error in log/src/cmd/CMakeLists.txt:
  Evaluation file to be written multiple times with different content.  This
  is generally caused by the content evaluating the configuration type,
  language, or location of object files:

   D:/Jenkins/workspace/ign_gui_win/ws/build/ignition-transport5/log/test/lib/ruby/ignition/cmdlog5.rb
osrf-migration commented 6 years ago

Original comment by Steve Peters (Bitbucket: Steven Peters, GitHub: scpeters).


are we building more than one build type (Release/Debug)?

osrf-migration commented 6 years ago

Original comment by Michael Grey (Bitbucket: mxgrey, GitHub: mxgrey).


I'm not clear on why this is considered to be an error. Evaluating the configuration type is the whole reason that we're using file(GENERATE ...), and as far as I can tell that's the whole purpose of file(GENERATE ...). From the docs:

Generate an output file for each build configuration supported by the current CMake Generator. Evaluate generator expressions from the input content to produce the output content.

osrf-migration commented 6 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).