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.e...@controlsdata.com<mailto:anthony.r.e...@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.
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to