Skip to content

CMake fails on windows #6

@n-s-k

Description

@n-s-k

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions