-
Notifications
You must be signed in to change notification settings - Fork 39
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
build on macOS Monterey fails with error Unknown CMake command "__cxx_std_process" #104
Comments
it compiles with these commands (even with M1):
|
I applied changes from #83 and it works in if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
# to
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" OR CMAKE_CXX_COMPILER_ID STREQUAL "AppleClang") |
I just tried today and that worked thanks! |
Thanks for all of the help above. I'm on Monterey version 12.5. What just worked for the step
to
However, in the next step
|
❯ git clone https://github.com/rpav/c2ffi.git
Cloning into 'c2ffi'...
remote: Enumerating objects: 1487, done.
remote: Counting objects: 100% (220/220), done.
remote: Compressing objects: 100% (115/115), done.
remote: Total 1487 (delta 122), reused 179 (delta 100), pack-reused 1267
Receiving objects: 100% (1487/1487), 348.87 KiB | 3.92 MiB/s, done.
Resolving deltas: 100% (980/980), done.
❯ cd c2ffi
❯ export CPPFLAGS="-I/opt/homebrew/opt/llvm@12/include"
❯ export LDFLAGS="-L/opt/homebrew/opt/llvm@12/lib"
❯ export PATH="/opt/homebrew/opt/llvm@12/bin:$PATH"
❯ mkdir build
❯ cd build
❯ cmake ..
-- Config: -Release
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /Library/Developer/CommandLineTools/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: /Library/Developer/CommandLineTools/usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- CXX Compiler: AppleClang
-- Building for Linux-x64
-- Found ZLIB: /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libz.tbd (found version "1.2.11")
-- Found LibXml2: /Library/Developer/CommandLineTools/SDKs/MacOSX12.1.sdk/usr/lib/libxml2.tbd (found version "2.9.4")
-- Found LLVM 12.0.1
-- LLVM installed in /opt/homebrew/opt/llvm@12
-- Using LLVMConfig.cmake in: /opt/homebrew/opt/llvm@12/lib/cmake/llvm
CMake Error at CMake/cxx_features.cmake:102 (__cxx_std_process):
Unknown CMake command "__cxx_std_process".
Call Stack (most recent call first):
CMakeLists.txt:63 (target_cxx_std)
-- Configuring incomplete, errors occurred!
See also "/Users/goenninger/swdev/c2ffi/build/CMakeFiles/CMakeOutput.log".
See also "/Users/goenninger/swdev/c2ffi/build/CMakeFiles/CMakeError.log".
❯ cmake --version
cmake version 3.22.2
I noticed that it assumes building for "Linux-x64" - is that correct?
I also see (running "make"):
-- The C compiler identification is AppleClang 13.0.0.13000029
-- The CXX compiler identification is AppleClang 13.0.0.13000029
Which certainly is not correct.
I also tried issue #100 but no luck ...
Any help really appeciated! - Thanks
frgo
The text was updated successfully, but these errors were encountered: