-- The C compiler identification is GNU 7.5.0
-- The CXX compiler identification is GNU 7.5.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
using vcpkg: /home/nys/libs/vcpkg/scripts/buildsystems/vcpkg.cmake
CMake Warning (dev) at /home/nys/libs/vcpkg/installed/x64-linux/share/directxmesh/directxmesh-config.cmake:27 (if):
Policy CMP0057 is not set: Support new IN_LIST if() operator. Run "cmake
--help-policy CMP0057" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
IN_LIST will be interpreted as an operator 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:11 (find_package)
This warning is for project developers. Use -Wno-dev to suppress it.
CMake Error at /home/nys/libs/vcpkg/installed/x64-linux/share/directxmesh/directxmesh-config.cmake:27 (if):
if given arguments:
"(" "NOT" "directxmesh_FIND_COMPONENTS" ")" "OR" "(" "library" "IN_LIST" "directxmesh_FIND_COMPONENTS" ")"
Unknown arguments specified
Call Stack (most recent call first):
CMakeLists.txt:11 (find_package)
-- Configuring incomplete, errors occurred!
As noted on the wiki, you can obtain an open source sal.h for Linux from GitHub, although with GCC there are some known include header issues you should be aware of.
Note the DirectXMathvcpkg port automatically downloads the sal.h header from that location for non-Win32 platforms.
Thanks for your job. I want to know wow to use this tool on Linux system?
I think it is not possible to compile directly on Linux. When I do this, I will report an error
The file
sal.h
is only available on windows I think.So I tring to use
vcpkg
tool. I installed it successfully, but it can't run.CMakeLists.txt
main.cpp
when I using
cmake ..
, I got the errror message: