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

Configuring pcraster_raster_format fails with visual studio 14 #60

Open
OliverSchmitz opened this issue Dec 5, 2016 · 1 comment
Open

Comments

@OliverSchmitz
Copy link

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!

@OliverSchmitz
Copy link
Author

follow-up issue:

Error copying file "D:/pcrteam_extern/build/pcraster_raster_format-1.3.1-Release-prefix/src/pcraster_raster_format-1.3.1-Release/sources/pcraster_raster_format/libpcraster_raster_format.a" to "D:/pcrteam_extern/build/windows/windows/msvc-14/x86_64/lib".

.lib instead of .a should be copied on Windows...

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

1 participant