0
私はcmakeをCLion環境で実行するとこの出力が得られます。私がCLionの外で走るとき、私は警告を得ず、すべて正常に動作します。CLionは正しいコンパイラを使用していませんか?
私はclangとclang ++をコンパイラに指定していますが、これはCCとCXX環境変数とCLionのツールチェーン設定で行いますが、g ++とgccはエラー。しかし、どこのCLion用の設定でも、gccやg ++について言及していません。
これらはどこから来ていますか、どのように修正できますか?私のIDEからこのプロジェクトを実際にビルドするのは本当にうれしいでしょう。
これらの問題は、CLion 2017.3のアップデート後に開始されました。
cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_MAKE_PROGRAM=/usr/bin/make -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -G "CodeBlocks - Unix Makefiles" /home/rkratt/src
-- The C compiler identification is Clang 3.9.0
-- The CXX compiler identification is Clang 3.9.0
-- Check for working C compiler: /usr/bin/clang
-- Check for working C compiler: /usr/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/clang++
-- Check for working CXX compiler: /usr/bin/clang++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
Building src in Debug mode.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/rkratt/src/cmake-build-debug
Problems were encountered while collecting compiler information:
g++: error: unrecognized command line option '-fopenmp=libomp'
gcc: error: unrecognized command line option '-fopenmp=libomp'
[Finished]
はい、建物も失敗します。 –