Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake fails on windows #6

Open
n-s-k opened this issue Oct 22, 2016 · 1 comment
Open

CMake fails on windows #6

n-s-k opened this issue Oct 22, 2016 · 1 comment

Comments

@n-s-k
Copy link

n-s-k commented Oct 22, 2016

Trying to generate a visual studio solution on window using cmake 3.7.0-rc2 :


CMake Warning (dev) at Tools/CMake/CCSEOptions.cmake:178 (if):
  Policy CMP0054 is not set: Only interpret if() arguments as variables or
  keywords when unquoted.  Run "cmake --help-policy CMP0054" for policy
  details.  Use the cmake_policy command to set the policy and suppress this
  warning.

  Quoted variables like "MSVC" will no longer be dereferenced when the policy
  is set to NEW.  Since the policy is not set the OLD behavior will be used.
Call Stack (most recent call first):
  CMakeLists.txt:83 (include)
This warning is for project developers.  Use -Wno-dev to suppress it.

....

CMake Warning (dev) at Src/C_BaseLib/CMakeLists.txt:40 (add_library):
  Policy CMP0049 is not set: Do not expand variables in target source
  entries.  Run "cmake --help-policy CMP0049" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.

And the generation fails with:

CMake Error at Src/C_BaseLib/CMakeLists.txt:40 (add_library):
  Cannot find source file:

   XXX/boxlib/build/Src/C_BaseLibCOORDSYS_3D.F.f

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx


CMake Error at Src/C_BoundaryLib/CMakeLists.txt:30 (add_library):
  Cannot find source file:

   XXX/boxlib/build/Src/C_BoundaryLibINTERPBNDRYDATA_3D.F.f

  Tried extensions .c .C .c++ .cc .cpp .cxx .m .M .mm .h .hh .h++ .hm .hpp
  .hxx .in .txx
@drummerdoc
Copy link
Contributor

A visual studio solution will require a complete overhaul of the CMake system there that was really added to BoxLib to support work with a specific Cmake-based project that is no longer relevant. As far as I am aware, in fact, the only folks using any of the CMake support in BoxLib are the VisIt team, and they use only the non-Fortran bits (explaining why perhaps, that the messages above pertain to Fortran files).

We have no plans to support visual studio, but if you find a workable solution that doesn't break the VisIt folks' work, please submit a pull request and we'll try to merge it in for you.

Good luck!
-Marc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants