[CMake] SET(CMAKE_Fortran_FLAGS) not always taking effect

Ette, Anthony (CDS) Anthony.R.Ette at controlsdata.com
Mon Jun 22 18:45:27 EDT 2015


So I am forcing some flags in a high-level CMakeLists.txt for all fortran sources using the subject command.  When I invoke via one environment (via python subprocess.popen with modified environment), cmake succeeds and all the build files are generated, however, my flags don't appear in the CMAKE build dir file flags.make.  When I launch another environment to build (cmd with modified environment), the build first fails (because my flags weren't thrown), but if I force cmake to run in the cmd env, flags.make then gets updated with my flags and the build succeeds.  Can you help me understand this behavior?  What triggers cmake to write SET(CMAKE_Fortran_FLAGS) to the flags.make file and why might I not be satisfying it in the first environment?

Thanks in advance,
Anthony Ette
Systems Engineer
Simulation and Modeling

Controls and Data Services Inc.
Part of the Rolls-Royce Group
7661 N Perimeter Rd
Indianapolis, IN 46241

tel: +1 (317) 230-6943
mob: +1 (317) 864-7975
email: Anthony.R.Ette at controlsdata.com<mailto:Anthony.R.Ette at controlsdata.com>
www.controlsdata.com<http://www.controlsdata.com/>

This e-mail (including attachments) contains contents owned by Rolls-Royce plc and its subsidiaries, affiliated companies or customers and covered by the laws of England and Wales, Brazil, US, or Canada (federal, state or provincial). The information contained in this email is intended to be confidential, may be legally privileged and subject to export controls which may restrict the access to and transfer of the information. If you are not the intended recipient, you are hereby notified that any retention, dissemination, distribution, interception or copying of this communication is strictly prohibited and may subject you to further legal action. Reply to the sender if you received this email by accident, and then delete the email and any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20150622/550124a3/attachment.html>


More information about the CMake mailing list