The following issue has been SUBMITTED. ====================================================================== https://public.kitware.com/Bug/view.php?id=16094 ====================================================================== Reported By: Damian Rouson Assigned To: ====================================================================== Project: CMake Issue ID: 16094 Category: CMake Reproducibility: always Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2016-05-05 01:57 EDT Last Modified: 2016-05-05 01:57 EDT ====================================================================== Summary: CMake 3.5.1 misinterprets C preprocessor logic Description: The attached, reduced example demonstrates CMake's erroneous interpretation of compound conditional C preprocessor logic that wraps statements that handle dependencies in a Fortran project. The file shared/fft.F90 filed demonstrates the syntax that exposes the bug and an alternate but otherwise equivalent syntax that works correctly.
Damian Steps to Reproduce: Some of the compilation flags employed in the CMake scripts require the Intel C and Fortran compilers and Intel MPI. tar xf missed_dependency.tar.bz2 cd missed_dependency mkdir build cd build FC=mpiifort CC=mpiicc cmake .. ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2016-05-05 01:57 Damian Rouson New Issue 2016-05-05 01:57 Damian Rouson File Added: missed_dependency.tar.bz2 ====================================================================== -- 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-developers