Re: [CMake] CHECK_CXX_COMPILER_FLAG doesn't give correct result for -fsanitize=address

2019-10-24 Thread Michael Ellery
I’ve dealt with that using something like this: set (_saved_CRL ${CMAKE_REQUIRED_LIBRARIES}) set (CMAKE_REQUIRED_LIBRARIES “-fsanitize=address;asan") check_cxx_compiler_flag (-fsanitize=address COMPILER_SUPPORTS_SAN) set (CMAKE_REQUIRED_LIBRARIES ${_saved_CRL}) the second item in CMAKE_RE

[CMake] CHECK_CXX_COMPILER_FLAG doesn't give correct result for -fsanitize=address

2019-10-24 Thread Turner, Adrian Keith via CMake
Hi CMake Mailing List, I am using the CHECK_CXX_COMPILER_FLAG directive in a CMake file to detect whether the compiler uses the "-fsanitize=address" compiler flag. I'm using the g++ 7.3.0 compiler which supports this flag but the CHECK_CXX_COMPILER_FLAG directive incorrectly determines that th

Re: [CMake] VS2019 LLVM Toolset?

2019-10-24 Thread Mojca Miklavec
On Thu, 24 Oct 2019 at 21:36, Osman Zakir wrote: > > Yes, I looked at this: > https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/ > so I kind of get it. VS2019 has built-in support for LLVM. I of course do > have LLVM installed. So for this, I have to put "ClangCL" as

Re: [CMake] VS2019 LLVM Toolset?

2019-10-24 Thread Osman Zakir
Yes, I looked at this: https://devblogs.microsoft.com/cppblog/clang-llvm-support-in-visual-studio/ so I kind of get it. VS2019 has built-in support for LLVM. I of course do have LLVM installed. So for this, I have to put "ClangCL" as the argument to -T? Okay, thanks. I'll try that. -- Po

Re: [CMake] Alternative locations for boost in cmake

2019-10-24 Thread Mateusz Loskot
On Thu, 24 Oct 2019 at 20:44, Mahmood Naderan wrote: > > 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_VE

Re: [CMake] VS2019 LLVM Toolset?

2019-10-24 Thread Mojca Miklavec
On Thu, 24 Oct 2019 at 20:28, Osman Zakir wrote: > > Hi. I tried to specify the LLVM Toolset for VS2019 by doing "-T LLVM" and > also "-T llvm" but it failed both times. For me "-T ClangCL" seems to have worked (provided that you install Clang with VS 2019, of course). (To figure out the potenti

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

[CMake] VS2019 LLVM Toolset?

2019-10-24 Thread Osman Zakir
Hi. I tried to specify the LLVM Toolset for VS2019 by doing "-T LLVM" and also "-T llvm" but it failed both times. What I get for the former is this: " cmake -G "Visual Studio 16 2019" -A x64 -T LLVM .. -DCMAKE_INSTALL_PREFIX="C:/Program Files/FLTK" -DCMAKE_BUILD_TYPE=Release CMake Error at CM

Re: [CMake] Alternative locations for boost in cmake

2019-10-24 Thread Mateusz Loskot
On Thu, 24 Oct 2019 at 19:05, Mahmood Naderan via CMake wrote: > > 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

[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: -- Boos

Re: [CMake] Don't list Up-to-date files during install

2019-10-24 Thread Ben Morgan
Hi Jason, See the CMAKE_INSTALL_MESSAGE variable: https://cmake.org/cmake/help/v3.16/variable/CMAKE_INSTALL_MESSAGE.html setting this to “LAZY” should do what you want. Cheers, Ben. > On 24 Oct 2019, at 16:44, Jason Bea

[CMake] Don't list Up-to-date files during install

2019-10-24 Thread Jason Beach
When installing files, cmakes prints a list of all files that are to be installed, even if some of those files are already installed and up-to-date (i.e. installed from a previous build). If the file is not installed or out-of date, cmake prints "Installing: ..." and if a file was already installe