[CMake] Issue with non-system gcc path

2019-11-02 Thread Mahmood Naderan via CMake
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

Re: [CMake] Issue with non-system gcc path

2019-11-02 Thread Mahmood Naderan via CMake
, 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

[CMake] Custom installation of cmake

2019-10-19 Thread Mahmood Naderan via CMake
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

Re: [CMake] Custom installation of cmake

2019-10-21 Thread Mahmood Naderan via CMake
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,

[CMake] Alternative locations for boost in cmake

2019-10-24 Thread Mahmood Naderan via CMake
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: --

Re: [CMake] Alternative locations for boost in cmake

2019-10-24 Thread Mahmood Naderan via CMake
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

Re: [CMake] Alternative locations for boost in cmake

2019-10-25 Thread Mahmood Naderan via CMake
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/

Re: [CMake] [DKIM: Failed] Re: Alternative locations for boost in cmake

2019-10-25 Thread Mahmood Naderan via CMake
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

Re: [CMake] Alternative locations for boost in cmake

2019-10-25 Thread Mahmood Naderan via CMake
>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:

Re: [CMake] Custom installation of cmake

2019-10-19 Thread Mahmood Naderan via CMake
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.