Hi,
May I know what is wrong with the specifying a non-system gcc path?
$ cmake .. -DCMAKE_C_COMPILER=/storage/users/mnaderan/tools/gcc-6.1.0/bin/gcc
-DCMAKE_CXX_COMPILER=/storage/users/mnaderan/tools/gcc-6.1.0/bin/g++
-- The C compiler identification is
, Nov 2, 2019 at 2:36 PM Mahmood Naderan via CMake
wrote:
>
> Hi,
>
> May I know what is wrong with the specifying a non-system gcc path?
>
>
> $ cmake .. -DCMAKE_C_COMPILER=/storage/users/mnaderan/tools/gcc-6.1.0/bin/gcc
> -DCMAKE_CXX_COMPILER=/storage/users/mnader
Hi
I would like to compile cmake source with a non default gcc version. That is, I
have built gcc in my home$ ls tools/gcc-7.1.0/bin/
c++ gcc-ar gcov-dumpx86_64-pc-linux-gnu-gcc
x86_64-pc-linux-gnu-gcc-ranlib
cpp gcc-nm gcov-tool
Thanks. I found it much easier to use the installer package (.sh file).
I wanted a new gcc for building cmake. since the system default is 4.8.5.
The installer package is available and installed that to my custom folder.
Regards,
Mahmood
On Sunday, October 20, 2019, 8:58:25 PM GMT+3:30,
Hi,
I have read https://cmake.org/cmake/help/v3.0/module/FindBoost.html which
states some variables for boost library. I want to know where should I set
these variables. For example, in the terminal, I have written
$ export Boost_NO_SYSTEM_PATHS=ON
However, after I run "cmake ..", I see:
--
Thank you. I tried this command:
cmake -DBoost_NO_SYSTEM_PATHS=ON
-DBOOST_INCLUDE_DIR=/storage/users/mnaderan/boost_1_65_1/build/include/
-DBoost_LIBRARY_DIRS=/storage/users/mnaderan/boost_1_65_1/build/lib/
-DBoost_ADDITIONAL_VERSIONS=1.65.1 ..
The paths are correct as you can see below:
$ ls
Even with the latest 3.15.4, I get the same error
$ cmake --version
cmake version 3.15.4
CMake suite maintained and supported by Kitware (kitware.com/cmake).
$ cmake -DBoost_NO_SYSTEM_PATHS=ON
-DBOOST_INCLUDE_DIR=/storage/users/mnaderan/boost_1_65_1/build/include/
Thank you. In addition to that, I have to write -DBoost_INCLUDE_DIR and not
-DBOOST_INCLUDE_DIR
It is not fine.
Regards,
Mahmood
On Friday, October 25, 2019, 11:54:43 AM GMT+3:30, Marcel Loose
wrote:
Hi Mahmood,
I think that "-DBoost_LIBRARY_DIRS" should be
>you have a "case discrepancy" between:
>BOOST_INCLUDE_DIR
>and>Boost_LIBRARY_DIRS
Yes. Thank you
Boost_LIBRARY_DIRandBoost_INCLUDE_DIR
Are correct. The cmake is now fine.
Regards,
Mahmood
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
OK and how about custom installation path of cmake?
Regards,
Mahmood
On Saturday, October 19, 2019, 4:44:28 PM GMT+3:30, 15 knots
wrote:
What worked for me, is to add 'ools/gcc-7.1.0/bin/' in front of the
PATh environment variable for the time cmake is invoked. E.g from
bash.
10 matches
Mail list logo