Re: [CMake] Multiple exports for a target installation

2019-06-24 Thread Shoaib Meenai
Thank you for the detailed explanation! That’s really helpful and gives me a much better sense of how to think about and structure this :) From: Craig Scott Date: Saturday, June 22, 2019 at 12:18 AM To: Shoaib Meenai Cc: "cmake@cmake.org" Subject: Re: [CMake] Multiple exports fo

Re: [CMake] Multiple exports for a target installation

2019-06-17 Thread Shoaib Meenai
for the COMPONENT option than the latest version, but I’ll cross that bridge when I get to it.) From: Craig Scott Date: Saturday, June 15, 2019 at 10:43 PM To: Shoaib Meenai Cc: "cmake@cmake.org" Subject: Re: [CMake] Multiple exports for a target installation On Sat, Jun 15, 2019 at 9:03 PM Sho

[CMake] Multiple exports for a target installation

2019-06-15 Thread Shoaib Meenai
Is it possible to associate a target with multiple exports? For example, if I'm building a project where I want to create multiple export sets, but there's some overlap in targets between those sets. I tried passing multiple EXPORT options to the install(TARGETS) signature but I just got an

Re: [CMake] Need help with CMake error "CMake Error at tools/clang/lib/Headers/cmake_install.cmake:36 file INSTALL cannot find "C:/llvm-project/build/$(Configuration)/lib/clang/9.0.0/include"."

2019-04-22 Thread Shoaib Meenai
You're probably running into https://reviews.llvm.org/D58537#inline-532492. This is an LLVM issue, not a CMake issue. From: CMake on behalf of Osman Zakir Date: Monday, April 22, 2019 at 6:45 AM To: "cmake@cmake.org" Subject: [CMake] Need help with CMake error "CMake Error at

Re: [CMake] cmake build of LLVM: HAVE_CXX_ATOMICS_WITHOUT_LIB test failure

2019-04-11 Thread Shoaib Meenai
llvm-...@lists.llvm.org would also be a good place to ask questions about the LLVM build system :) 1. I believe it’s just called the configure phase. (There’s also the generation phase, where CMake actually generates the build system.) 2. How have you set

Re: [CMake] Fake dependencies of executables to static libs

2019-04-04 Thread Shoaib Meenai
, that'd also be helpful for debugging. Thanks, Shoaib Meenai From: CMake on behalf of Stephan Menzel Date: Wednesday, April 3, 2019 at 10:56 PM To: cmake Subject: Re: [CMake] Fake dependencies of executables to static libs Hello again, no ideas so far? Perhaps I can elaborate. I have tried

Re: [CMake] Checking Variables in a tool-chain file

2019-01-31 Thread Shoaib Meenai
1, 2019 at 6:36 AM Shoaib Meenai mailto:smee...@fb.com>> wrote: We have a somewhat similar problem with LLVM's toolchain file for cross-compiling to Windows, and we solve it there by saving and restoring cache variables from the environment inside the toolchain file itself. See https://revi

Re: [CMake] Checking Variables in a tool-chain file

2019-01-31 Thread Shoaib Meenai
We have a somewhat similar problem with LLVM's toolchain file for cross-compiling to Windows, and we solve it there by saving and restoring cache variables from the environment inside the toolchain file itself. See

[CMake] Why does pkg_check_modules not use CMAKE_SYSTEM_PREFIX_PATH?

2018-08-22 Thread Shoaib Meenai
Hi, I'm using CMake for cross-compilation, and I have a toolchain file which sets CMAKE_SYSTEM_PREFIX_PATH accordingly. I'm running into issues with pkg_check_modules not finding some modules because it only searches inside CMAKE_PREFIX_PATH and not CMAKE_SYSTEM_PREFIX_PATH (where my *.pc

[CMake] Framework installation problems with ninja

2018-06-27 Thread Shoaib Meenai
ong, or is this a bug with CMake's Ninja generator? If it's the latter, any thoughts on how to work around it? I suppose I could try to manually create the "foo/foo.framework/foo" target, but that seems kinda gross. Thanks, Shoaib Meenai -- Powered by www.kitware.com Please keep m

Re: [CMake] Approach to both shared and static lib (again, sorry)

2018-05-19 Thread Shoaib Meenai
The convention in MSVC-land seems to be to prefix (as well as suffix) static libraries with lib. E.g. the static CRT is libcmt.lib, the static VC runtime support library is libvcruntime.lib (whereas the import library for the dynamic equivalent is vcruntime.lib), and so on. It isn't necessarily

Re: [CMake] Visual C++ Compile/Link Flags

2018-02-13 Thread Shoaib Meenai
Visual Studio's linker (and compiler, for that matter) also accept flags that start with dashes instead of slashes (e.g. you can do -opt:noref instead of /opt:noref). From: CMake on behalf of ThePhD Date: Tuesday, February 13, 2018 at 1:10 PM To:

[CMake] Resource compiler issues for cross-compiling

2017-10-24 Thread Shoaib Meenai
Hi all, I'm cross-compiling from Linux to Windows using clang-cl and the Windows SDK (i.e. emulating an MSVC environment), and I'm attempting to use llvm-rc (which is new in LLVM 6.0) as the resource compiler. cmake automatically enables the RC language for MSVC. However, it also sets