Skip to content

Configuring pcraster_raster_format fails with visual studio 14 #60

@OliverSchmitz

Description

@OliverSchmitz

cmake (3.6.3) complains and can't set the compiler id

cmake_policy(SET CMP0054 NEW)
might be required?

cmake -G "NMake Makefiles" -Dpeacock_prefix=D:\pcrteam_extern\build -Dbuild_pcraster_raster_format=true -Dpcraster_raster_format_version
=1.3.1 D:\pcrteam_extern\peacock

-- The C compiler identification is MSVC 19.0.24210.0
-- The CXX compiler identification is MSVC 19.0.24210.0
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting C compiler ABI info
-- Checking if C linker supports --verbose
-- Checking if C linker supports --verbose - yes
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe -- works
-- Detecting CXX compiler ABI info
-- Checking if CXX linker supports --verbose
-- Checking if CXX linker supports --verbose - yes
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
CMake Warning (dev) at devbase/cmake/PeacockPlatform.cmake:82 (elseif):
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):
cmake/Peacock.cmake:9 (include)
CMakeLists.txt:15 (include)
This warning is for project developers. Use -Wno-dev to suppress it.

CMake Error at devbase/cmake/PeacockPlatform.cmake:88 (message):
Add compiler id
Call Stack (most recent call first):
cmake/Peacock.cmake:9 (include)
CMakeLists.txt:15 (include)

-- Configuring incomplete, errors occurred!

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