[CMake] Multiple platform targets (iOS and OSX)

2013-04-01 Thread Saad Khattak
Hi, I am using CMake to build a solution consisting of several projects (using Visual Studio lingo here) where some of them are libraries, some executables. Some executables can run only on the OS (i.e. OSX and Windows) and will not work correctly on iOS. We have one such executable that

[CMake] iOS library out path

2013-04-01 Thread Saad Khattak
Hi, If I set the LIBRARY_OUTPUT_PATH for iOS projects like this: someDir/lib/ then the final directory for the library outputs is: someDir/lib/debug assuming I am building the debug configuration. But if I now specify the directories for linking: link_directories(someDir/lib) in Xcode the

[CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories

2013-04-01 Thread Saad Khattak
Hi, If I have the following command: execute_process( COMMAND ${CMAKE_COMMAND} -E tar xzf mySDK.tar.gz WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) the extraction works and extracts the tar in the current directory. But this: execute_process( COMMAND ${CMAKE_COMMAND} -E

Re: [CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories

2013-04-01 Thread Saad Khattak
of the WORKING_DIRECTORY argument? Use : execute_process(... RESULT_VARIABLE rv) message(rv='${rv}') to see what the return value of CMake is. Is there an error message when trying to extract the tar file? -Original Message- From: Saad Khattak saadrus...@gmail.com To: CMake Mailing List

Re: [CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories

2013-04-02 Thread Saad Khattak
: 2013/4/2 Saad Khattak saadrus...@gmail.com Hi, If I have the following command: execute_process( COMMAND ${CMAKE_COMMAND} -E tar xzf mySDK.tar.gz WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} ) the extraction works and extracts the tar in the current directory

Re: [CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories

2013-04-02 Thread Saad Khattak
That prints the directory in the console: Z:/engine/src/mySDK But did not extract to it. Note that mySDK exists, and the tar is in the 'src' folder and I am able to extract in the 'src' folder properly. - Saad On Tue, Apr 2, 2013 at 1:58 AM, Eric Noulard eric.noul...@gmail.com wrote: COMMAND

[CMake] How do I search for personal libraries?

2013-04-02 Thread Saad Khattak
Hi, Suppose I have two personal repositories: A and B. Repository B has a dependency on repository A i.e. repository A builds multiple libraries and repository B builds multiple libraries and executables. I can build 32-bit and 64-bit libraries/executables for both by having a 'build' and

Re: [CMake] CMake extracting tar via execute_process does not allow extraction in subdirectories

2013-04-03 Thread Saad Khattak
On Wed, Apr 3, 2013 at 2:08 AM, Eric Noulard eric.noul...@gmail.com wrote: 2013/4/3 Saad Khattak saadrus...@gmail.com That prints the directory in the console: Z:/engine/src/mySDK But did not extract to it. Note that mySDK exists, and the tar is in the 'src' folder and I am able to extract

Re: [CMake] How do I search for personal libraries?

2013-04-03 Thread Saad Khattak
, Apr 3, 2013 at 7:44 AM, Saad Khattak saadrus...@gmail.comwrote: Hi, Suppose I have two personal repositories: A and B. Repository B has a dependency on repository A i.e. repository A builds multiple libraries and repository B builds multiple libraries and executables. I can build 32-bit

[CMake] Explanation of the CMake INSTALL and EXPORT Commands

2013-04-03 Thread Saad Khattak
Hi, I am having a hard time understanding some commands in CMake which by the looks of it are vital for proper project deployment. One of the commands is INSTALL and the other is EXPORT. I have read the following page many times: http://www.cmake.org/Wiki/CMake:Install_Commands. The article

[CMake] Installing and Exporting for multiple configurations

2013-04-03 Thread Saad Khattak
Hi, I am trying my best to understand CMake's install and export commands so that separate projects are able to find libraries easily. I am having a tremendously hard time understand what CMake is doing. After 'add_library()' where the library is called 'myLib' I called the following:

Re: [CMake] Installing and Exporting for multiple configurations

2013-04-04 Thread Saad Khattak
/vs10/debug/ ../build/vs10/release/ sorta... and just target bin lib etc. it's just simpler On Wed, Apr 3, 2013 at 7:06 PM, Saad Khattak saadrus...@gmail.com wrote: Hi, I am trying my best to understand CMake's install and export commands so that separate projects are able to find

Re: [CMake] Explanation of the CMake INSTALL and EXPORT Commands

2013-04-04 Thread Saad Khattak
$pe$1...@ger.gmane.org Content-Type: text/plain; charset=UTF-8; format=flowed On 2013-04-03 16:16, Saad Khattak wrote: I am having a hard time understanding some commands in CMake which by the looks of it are vital for proper project deployment. One of the commands is INSTALL and the other

[CMake] Trigger a build with CMake

2013-04-16 Thread Saad Khattak
Hi, Now that I have a project up and running with CMake generated native project files, can I trigger a build with CMake as well? That is, a cross-platform way to trigger a build on the project without the need for me to call 'msbuild' on windows for example? - Saad -- Powered by

Re: [CMake] Trigger a build with CMake

2013-04-16 Thread Saad Khattak
`--` afterwards, so if you are using, for example, the Makefile generator, you can build in parallel with `cmake --build . -- -j5` On Tue, Apr 16, 2013 at 11:18 AM, Saad Khattak saadrus...@gmail.comwrote: Hi, Now that I have a project up and running with CMake generated native project files, can I

[CMake] Can CMake target different platforms for sub-projects?

2013-05-13 Thread Saad Khattak
Hi, I currently have a CMake project with multiple sub-projects where the sub-projects are libraries and executables. The project works on windows and iOS (via XCode). One such sub-project is an executable that can only be run on OSX and must be run after every build. This executable makes a few

[CMake] Get CMake to unset/remove a property in the Xcode project

2014-05-15 Thread Saad Khattak
Hello, I would like CMake to not set the following property in the project at all: ARCHS = $(ARCHS_STANDARD) That is, I would like this property to not even show up in the *pbxproj*file (which can be found inside the generated *xcodeproj* bundle. In fact, I would like it to be removed by CMake.

[CMake] Visual Studio 2013 warning MSB8028

2014-09-03 Thread Saad Khattak
I have a solution with multiple projects including a CMake INSTALL project for installing the binaries. With CMake Version 3.0 I am receiving the following warning for each of my projects in the solution: warning MSB8028: The intermediate directory (myProject.dir\Debug\) contains files shared from

Re: [CMake] Visual Studio 2013 warning MSB8028

2014-09-05 Thread Saad Khattak
For future reference: The solution is to delete your build folder and generate the projects again. Not sure what is changed by CMake in 3.0 but VS does not like it unless the build folder is cleaned. On Wed, Sep 3, 2014 at 6:09 PM, Saad Khattak saadrus...@gmail.com wrote: I have a solution

[CMake] Extracting the configure and generate command

2014-11-01 Thread Saad Khattak
Once I have configured and generated a CMake project, is there a way to extract that into a command? So, let's say I have configured and generated a project using the CMake GUI. I am then able to extract (somehow) the full configure/generate command which looks like this: cmake -DOPTION_1=ON

Re: [CMake] Extracting the configure and generate command

2014-11-02 Thread Saad Khattak
the -D command line options for the things you've touched in the cmake-gui program... HTH, David C. On Sat, Nov 1, 2014 at 12:16 PM, Saad Khattak saadrus...@gmail.com wrote: Once I have configured and generated a CMake project, is there a way to extract that into a command? So, let's say

[CMake] Linking with an external project also built with CMake

2015-09-17 Thread Saad Khattak
Hello, I have a project *ExternalLib* that uses CMake to build its libraries. I then have my own project (separate from the external library) that needs to include ExternalLib's headers and link with its libraries. ExternalLib does not have a find_package module. Since ExternalLib is also built

Re: [CMake] ExternalProject_Add

2017-01-22 Thread Saad Khattak
> Yes, that is what I do in my superbuilds. Generally I make is such that my > project could be built without the superbuild, and the superbuild is just a > convenience. > > On Sat, Jan 21, 2017 at 12:17 PM, Saad Khattak <saadrus...@gmail.com> > wrote: > > >> One pos

Re: [CMake] ExternalProject_Add

2017-01-21 Thread Saad Khattak
static info anyway). Am 8. Januar 2017 22:49:52 MEZ schrieb Saad Khattak <saadrus...@gmail.com>: >Hello, > >I have an external project glfw that I added to my project like this: > >== >include(ExternalProject) >ExternalProject_Add(glfw > GIT_REPOSITORY &qu

Re: [CMake] Pointing CMAKE_AUTOMOC to a custom version of Qt and its moc.exe

2016-11-07 Thread Saad Khattak
Konstantin Tokarev <annu...@yandex.ru> wrote: > > > 07.11.2016, 18:49, "Saad Khattak" <saadrus...@gmail.com>: > > I am working on a plugin for Maya and it uses a customized version of > Qt. Maya's SDK comes with everything to build Qt (headers, libraries a

Re: [CMake] Pointing CMAKE_AUTOMOC to a custom version of Qt and its moc.exe

2016-11-09 Thread Saad Khattak
6 AM Jakob van Bethlehem <jsvanbethle...@gmail.com> wrote: > Hej, > > On Mon, Nov 7, 2016 at 4:48 PM, Saad Khattak <saadrus...@gmail.com> wrote: > > I am working on a plugin for Maya and it uses a customized version of Qt. > Maya's SDK comes with everything to build Qt

[CMake] Pointing CMAKE_AUTOMOC to a custom version of Qt and its moc.exe

2016-11-07 Thread Saad Khattak
I am working on a plugin for Maya and it uses a customized version of Qt. Maya's SDK comes with everything to build Qt (headers, libraries and customized Qt tools such as moc.exe). I have the following issues: (1) With CMAKE_AUTOMOC set to ON, I am unable to figure out how to point CMake to pick

Re: [CMake] Find Vulkan on 32 bit builds

2017-01-10 Thread Saad Khattak
discussion with LunarG. Cheers, Matthäus Am 08.01.2017 um 14:36 schrieb Andreas Naumann: > Hello, > Am 08.01.2017 um 07:22 schrieb Saad Khattak: >> Hello, >> >> When I run "find_package(VULKAN)" in a CMakeLists for a Visual Studio >> 2015 32-bit pro

[CMake] target_link_libraries is using relative path of library

2017-01-07 Thread Saad Khattak
Hello, This is a very strange behavior I am encountering. I am using CMake 3.7.1 with Visual Studio 2015. I have the following as part of a CMakeLists file: find_library(glfw_LIB_D glfw3_d ${glfw_LIBRARIES}) find_library(glfw_LIBglfw3 ${glfw_LIBRARIES}) When I do "message(STATUS

[CMake] Find Vulkan on 32 bit builds

2017-01-07 Thread Saad Khattak
Hello, When I run "find_package(VULKAN)" in a CMakeLists for a Visual Studio 2015 32-bit project, the ${Vulkan_LIBRARY} and ${Vulkan_LIBRARIES} variables both point to the "Bin" folder for the Vulkan installation instead of the "Bin32" folder. I looked at the FindVulkan.cmake module and even put

[CMake] ExternalProject_Add

2017-01-08 Thread Saad Khattak
Hello, I have an external project glfw that I added to my project like this: == include(ExternalProject) ExternalProject_Add(glfw GIT_REPOSITORY "https://github.com/glfw/glfw.git; GIT_TAG "master" SOURCE_DIR "${CMAKE_SOURCE_DIR}/dep/glfw" CMAKE_ARGS -DGLFW_BUILD_DOCS=OFF

[CMake] INTERFACE libraries and -config.cmake files

2017-12-04 Thread Saad Khattak
Hi, I have an interface library and I am not sure how I would get CMake to generate the usual -config.cmake file for the library so that I can then use "find_package" on the interface library from an external project. I am adding (and installing) the library like this: add_library(myLib

[CMake] CMake skip unnecessary compiler checks

2017-12-16 Thread Saad Khattak
Hi, We have about a hundred projects that use CMake to do the compilation. Each night, we do a clean build and CMake performs unnecessary compiler checks for every single project: -- The C compiler identification is MSVC 17.0.61030.0 -- The CXX compiler identification is MSVC 17.0.61030.0 --

[CMake] Installing and exporting multiple configurations of the same library

2017-12-15 Thread Saad Khattak
Hi, I have 4 configurations (2 for Debug and 2 for Release) and I would like to install the libraries such that they are installed in the correct directories. Installing without worrying about configurations looks like this: install(TARGETS ${LIB_NAME} EXPORT ${LIB_NAME}Config

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-15 Thread Saad Khattak
way to specify the property is to use command set_property which > supports multiple values for a property: > > set_property(TARGET LibD PROPERTY IMPORTED_LINK_INTERFACE_LIBRARIES LibA > LibB) > > > > > > *From: *CMake <cmake-boun...@cmake.org> on behalf of Saad K

Re: [CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-13 Thread Saad Khattak
; set_target_properties(LibD PROPERTIES IMPORTED_LINK_INTERFACE_LIBRARIES "LibA;LibB" #cmake no longer recognizes LibA and LibB as IMPORTED CMake libraries ) Regards, Saad On Wed, Dec 13, 2017 at 4:32 PM Craig Scott <craig.sc...@crascit.com> wrote: > On Thu, Dec 14, 2

[CMake] Using SET_TARGET_PROPERTIES and IMPORTED_LINK_INTERFACE_LIBRARIES

2017-12-13 Thread Saad Khattak
Hi, I have several imported libraries: LibA LibB LibC Where each imported library has been populated by (where ${LIB_NAME} is either LibA, LibB or LibC): add_library(${LIB_NAME} STATIC IMPORTED) And each library has the properties IMPORT_LOCATION_${CONFIGURATION} set properly:

[CMake] Using CMake include does not seem to work intuatively

2017-12-12 Thread Saad Khattak
Hi, Let's say I have the following directory structure: ~/Repos/MyRepo/CMakeLists.txt ~/CMakeFiles/Foo.cmake ~/CMakeFiles/Bar.cmake In the CMakeLists.txt I have the following command: include(~/CMakeFiles/Foo.cmake) And in Foo.cmake I have the following command: include(Bar.cmake) Turns out

Re: [CMake] Installing and exporting multiple configurations of the same library

2017-12-17 Thread Saad Khattak
Vrankar <domen.vran...@gmail.com> wrote: > 2017-12-16 0:18 GMT+01:00 Saad Khattak <saadrus...@gmail.com>: > >> Hi, >> >> I have 4 configurations (2 for Debug and 2 for Release) and I would like >> to install the libraries such that they are installed in th

Re: [CMake] CTest not searching for the correct executable

2018-01-05 Thread Saad Khattak
That was it, thanks Nils! For future reference, after adding the test like Nils suggested, calling "ctest" wouldn't work as it now needs your configuration: ctest -C Debug On Fri, Jan 5, 2018 at 11:16 AM Nils Gladitz <nilsglad...@gmail.com> wrote: > On 05.01.2018 17:11,

[CMake] CTest not searching for the correct executable

2018-01-05 Thread Saad Khattak
Hi, Suppose I have something like this: add_executable(MyTest main.cpp) set_target_properties(MyTest PROPERTIES DEBUG_POSTFIX _d RELEASE_POSTFIX _r ) add_test(RunTests MyTest) # where MyTest is the I expect CMake to recognize that "MyTest" has executables that are named "MyTest_d" and

Re: [CMake] Making sure dependent projects are up-to-date

2018-01-13 Thread Saad Khattak
at 10:28 AM J Decker <d3c...@gmail.com> wrote: > maybehttps://cmake.org/cmake/help/v3.2/module/ExternalProject.html > > BUILD_ALWAYS 1No stamp file, build step always runs > > On Fri, Jan 12, 2018 at 7:41 PM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> H

Re: [CMake] Querying CMake variables of external CMake projects

2018-01-13 Thread Saad Khattak
Thank you Konstantin. get_target_properties(...) works very well. On Sat, Jan 13, 2018 at 12:06 PM Konstantin Tokarev <annu...@yandex.ru> wrote: > > > 13.01.2018, 06:26, "Saad Khattak" <saadrus...@gmail.com>: > > Hi, > > > > Say I find Li

[CMake] Querying CMake variables of external CMake projects

2018-01-12 Thread Saad Khattak
Hi, Say I find LibA using find_package(LibA) and I now have access to LibA_DIR, which is the build folder of LibA. Is there a way I can query additional variables, such as LibA's source directory, install directory etc. i.e. variables that are defined by CMake when LibA was being generated/built

[CMake] Making sure dependent projects are up-to-date

2018-01-12 Thread Saad Khattak
Hi, Let's say I have several CMake enabled libraries that have their own respective build directories and have been installed: LibA LibB (depends on A) LibC LibD (depends on LibC and LibA) I then create a new executable project ProjExe that depends on LibD. Now, I am working on LibA, LibB,

Re: [CMake] Get find_package to choose INSTALLed libraries instead of libraries in the build folder

2018-01-12 Thread Saad Khattak
d step, build binaries are used as well as absolute paths so > produced binaries can be used during build step (i.e. launching an > executable produced) without requirements regarding paths settings (i.e. > PATH or LD_LIBRARY_PATH). > > > > > > *From: *CMake <cmake-

[CMake] Get find_package to choose INSTALLed libraries instead of libraries in the build folder

2018-01-11 Thread Saad Khattak
Hi, I would like find_package(MyLib) to link find the libraries found in the INSTALL folder instead of the build folder. Currently, when I do a find_package(MyLib) and then target_link_libraries(target MyLib) the paths all point to MyLib's build folder and not the folder where MyLib's

[CMake] Relaying all command line arguments from SuperBuild to ExternalProject_Add

2018-01-31 Thread Saad Khattak
I have the following setup: Superbuild - ExternalProject_Add(a...) - ExternalProject_Add(b...) - ExternalProject_Add(c...) - ExternalProject_Add(d...) The SuperBuild is built from command line with some options e.g. -DMY_OPTION=TRUE. I would like all these options to be passed to each

Re: [CMake] Relaying all command line arguments from SuperBuild to ExternalProject_Add

2018-01-31 Thread Saad Khattak
Thank you Don, that was it. Querying and storing the args before a call to 'project' and your loop and your conditional were the key. On Wed, Jan 31, 2018 at 10:14 PM Don Hinton <hinto...@gmail.com> wrote: > Hi Saad: > > On Wed, Jan 31, 2018 at 6:47 PM, Saad Khattak <sa

Re: [CMake] Relaying all command line arguments from SuperBuild to ExternalProject_Add

2018-01-31 Thread Saad Khattak
quot; PLATFORM_DEFINES ${PLATFORM_DEFINES} ) > > add_definitions( ${PLATFORM_DEFINES} ) > > > > On Wed, Jan 31, 2018 at 9:36 AM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> I have the following setup: >> Superbuild >>- ExternalProject_Add(a.

[CMake] Update and build child projects if a parent (dependency) is updated

2018-02-07 Thread Saad Khattak
Hi, I have a lot of projects with many dependencies. Support ProjE depends on ProjD which in turn depends on ProjB and ProjC where ProjB depends on ProjA. If ProjA, is updated, I would like some way to trigger the generate/build (or just build, assuming the projects are already generated) ProjB,

[CMake] Include directories of IMPORTED libraries not propagating

2017-12-22 Thread Saad Khattak
Hi, I have the following setup: ImportedLib (sets location of library files and public include directories) LibA (publicly includes ImporteLib with target_link_libraries(...)) Exe (finds LibA and links against it) Where ImportedLib uses

[CMake] How to link against projects added through FetchContent

2018-03-11 Thread Saad Khattak
Hi, I would like to know how to use the FetchContent properly so that I can link against downloaded (CMake enabled) projects. I have looked at the CMake docs, which although are quite thorough, almost always fail to list a complete example which is incredibly crucial to get up and running

Re: [CMake] How to link against projects added through FetchContent

2018-03-11 Thread Saad Khattak
interspersed below. > > > On Mon, Mar 12, 2018 at 11:02 AM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> Hi, >> >> I would like to know how to use the FetchContent properly so that I can >> link against downloaded (CMake enabled) projects. I have looked

Re: [CMake] How to link against projects added through FetchContent

2018-03-11 Thread Saad Khattak
BINARY_DIR}) #can be case insensitive endif() add_executable(testExe main.cpp ) message(STATUS "Catch include dir: ${catch2_SOURCE_DIR}/include") target_link_libraries(testExe Catch) #name of library to link is case sensitive! `` O

[CMake] Why isn't target_link_libraries not enough in some cases?

2018-04-04 Thread Saad Khattak
Hi, I am fetching and building SDL2 using FetchContent and then using target_link_libraries(MyExe SDL2) in the hopes that the required include directories and libraries will be added populated properly. The example project can be found here: https://github.com/samaursa/cmake_fetch_content_SDL2

Re: [CMake] Can find_package(...) distinguish between debug and release installs?

2018-04-10 Thread Saad Khattak
Visual Studios with different > runtime libraries. > > Cheers. > > On Tue, Apr 10, 2018 at 10:56 AM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> Hi, >> >> When find_package(LibA) sets the LibA_FOUND variable, is it possible to >> know if the packag

[CMake] FetchContent and find_package

2018-04-10 Thread Saad Khattak
Hi, My project is setup in such a way that I perform a FetchContent 'only if' my find_package fails. This works very well until I start building different configurations. Let's say I generate and build Debug for my project. My project tries to find_package(LibA QUIET) and cannot find it. So, it

Re: [CMake] FetchContent and find_package

2018-04-10 Thread Saad Khattak
Thank you Craig. >> Imported targets are definitely more preferable though Can you please elaborate on this? On Tue, Apr 10, 2018 at 10:23 AM Craig Scott <craig.sc...@crascit.com> wrote: > > On Tue, Apr 10, 2018 at 11:07 PM, Saad Khattak <saadrus...@gmail.com> &g

[CMake] FetchContent and multiple CMake projects

2018-04-12 Thread Saad Khattak
Hi, I have many independent CMake projects and most projects have external dependencies. Most of the projects have the same dependency e.g. Catch testing library. Each library uses FetchContent so that it can be built independently by simply cloning its github repository, configuring and

[CMake] Can find_package(...) distinguish between debug and release installs?

2018-04-09 Thread Saad Khattak
Hi, When find_package(LibA) sets the LibA_FOUND variable, is it possible to know if the package found is the Debug or Release build (or both)? I have a fairly complex build setup where I need to be able to distinguish if find_package(LibA) found a Debug or Release build. - Saad -- Powered by

Re: [CMake] find_package and get_target_property

2018-04-13 Thread Saad Khattak
ike LibA_LIBRARIES and so > on…). The documentation of the package, if any, generally describe how to > use the package. > > > > > > *From: *CMake <cmake-boun...@cmake.org> on behalf of Saad Khattak < > saadrus...@gmail.com> > *Date: *Friday 13 April 2018 at 0

[CMake] find_package and get_target_property

2018-04-12 Thread Saad Khattak
Hi, I am successfully able to find a package using find_package(LibA) but I cannot do a get_target_property on the package as I get the error: get_target_property() called with non-existent target "LibA" How do I go about the target properties for a package? - Saad -- Powered by

[CMake] Listing all the include directories

2018-03-26 Thread Saad Khattak
Hi, I have many libraries and packages that are being linked using target_link_libraries(...) where CMake takes care of the include directories. There are cases where I get compile errors because I don't know the exact include directories. I thought perhaps I could get the include directories of

Re: [CMake] Listing all the include directories

2018-03-27 Thread Saad Khattak
wrote: > In general your options are to look at the command line or use > cmake-server mode to query the code model. The full set of include > directories is not known while configuring due to generator > expressions expanding after the configure step. > > On Mon, Mar 26, 2018 at 9:45 P

Re: [CMake] Generator Expressions and FetchContent

2018-03-18 Thread Saad Khattak
u provide a small project example that can be used to demonstrate > your problem? The specifics of how you are doing things may be important. > > > On Sun, Mar 18, 2018 at 8:12 AM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> Hi, >> >> ExternalProj

Re: [CMake] Generator Expressions and FetchContent

2018-03-19 Thread Saad Khattak
confusion, please let me know. On Mon, Mar 19, 2018 at 7:11 AM Craig Scott <craig.sc...@crascit.com> wrote: > On Mon, Mar 19, 2018 at 8:25 AM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> Thank you for the clarification Craig. >> >> >> If

[CMake] Generator Expressions and FetchContent

2018-03-17 Thread Saad Khattak
Hi, ExternalProject_Add builds, generates and installs and thus any generator expressions used will be expanded by the time another library uses it. For example, if I add a library LibA using ExternalProject_Add, I can then query the target property INTERFACE_INCLUDE_DIRECTORIES and get the

Re: [CMake] Generator Expressions and FetchContent

2018-03-18 Thread Saad Khattak
2018 at 3:44 AM, Saad Khattak <saadrus...@gmail.com> > wrote: > >> Absolutely. Please find the example project here: >> https://github.com/samaursa/cmake_fetch_content_and_generator_expressions >> >> >> The repository README also includes the output fro