[CMake] CMake 3.x not respecting IMPORTED_LOCATION_CONFIG properties

2014-11-17 Thread Parag Chandra
all of my configurations of Foo are now going to link against the same Release configuration of Bar. Is this a bug, or am I simply not using this feature correctly? I tried both 3.0.1 and 3.1rc2 on Windows. Thanks, Parag Chandra -- Powered by www.kitware.com Please keep messages on-topic

Re: [CMake] CMake 3.x not respecting IMPORTED_LOCATION_CONFIG properties

2014-11-18 Thread Parag Chandra
I figured it out, and it's a case-sensitivity issue. I have named my configuration Custom, so I was expecting the corresponding property to be IMPORTED_LOCATION_Custom, but in fact CMake is expecting IMPORTED_LOCATION_CUSTOM. So it's an easy fix on my part. Parag Chandra Software Engineer

[CMake] Looking for a way to post-process Visual Studio projects generated by CMake

2014-11-21 Thread Parag Chandra
? The naïve thing I tried first is to just run a script to make the modifications, but of course the next time CMake runs it will regenerate the project file and wipe out these changes. Regards, Parag Chandra -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

Re: [CMake] CMake Vs 2012 Express 64bit

2014-12-10 Thread Parag Chandra
-development-under-visual-studio-20 12-express Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 2285, Atlanta, GA 30309 On 12/10/14, 9:03 AM, Micha Renner micha.ren...@t-online.de wrote: Hi all

Re: [CMake] Including another CMakeLists project

2014-12-10 Thread Parag Chandra
this: if (NOT (DEFINED Foo_cmake)) set (Foo_cmake TRUE) # Add shared logic below, then end with: endif () Hope this helps. Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 2285, Atlanta, GA 30309 On 12/10/14, 9

Re: [CMake] Target 'copy-construction'/'fork'

2014-12-11 Thread Parag Chandra
() endforeach () Hope this helps. Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 2285, Atlanta, GA 30309 On 12/10/14, 8:58 AM, Domagoj Saric domagoj.sa...@littleendian.com wrote: Hi, Given a target

Re: [CMake] MinGW flags

2014-12-15 Thread Parag Chandra
it¹s not guaranteed to be defined, so you¹ll have to experiment. Regards, Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 2285, Atlanta, GA 30309 On 12/15/14, 11:16 AM, Petr Bena benap...@gmail.com

[CMake] CMake 3.1 unable to detect AppleClang when cross-compiling for iOS

2014-12-16 Thread Parag Chandra
and 3.1rc3. Does anyone have any ideas? Thanks, Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 2285, Atlanta, GA 30309 -- Powered by www.kitware.com

Re: [CMake] Help with Policy CMP0026 (disallow LOCATION target property)

2014-12-23 Thread Parag Chandra
Have you tried the CMake variables LIBRARY_OUTPUT_PATH and EXECUTABLE_OUTPUT_PATH? I¹ve been using them to accomplish much the same thing. Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 2285, Atlanta, GA

Re: [CMake] Xcode does not link against frameworks

2015-01-26 Thread Parag Chandra
Hi Daniel, I've just been using: target_link_libraries (TargetName -framework IOKit) Which has been working perfectly for me. Then again, I am only trying to add frameworks that are part of the OS. I haven't yet tried building my own frameworks and linking those in. Parag Chandra Software

[CMake] Any way to set the productType in a CMake-generated Xcode project?

2015-02-04 Thread Parag Chandra
, which is the productType entry inside the PBXNativeTarget section of the generated Xcode project. This needs to be com.apple.product-type.bundle.unit-test, but CMake sets it to com.apple.product-type.bundle. Is there any way to alter this value? Thanks, Parag Chandra Software Engineer

Re: [CMake] Error in Cmake Installation

2015-02-10 Thread Parag Chandra
Try running: sudo make install Instead. On Feb 10, 2015, at 7:45 AM, Gunjan Gautam gunjan.gemin...@gmail.commailto:gunjan.gemin...@gmail.com wrote: Hi All, While installing cmake using below option, I am facing the error in step 3. Step1: ./bootstarp Step2: make step: make install Error

Re: [CMake] compile flags per configuration in 3.2?

2015-03-23 Thread Parag Chandra
Have you looked at CMAKE_LANG_FLAGS_CONFIG, e.g. http://www.cmake.org/cmake/help/v3.1/variable/CMAKE_LANG_FLAGS_DEBUG.html I've been using these for exactly the purpose you describe. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com

Re: [CMake] compile flags per configuration in 3.2?

2015-03-23 Thread Parag Chandra
-expressions(7) One of the generator expressions available to you is the current configuration, so you may be able to conditionally add specific flags for each configuration. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https

Re: [CMake] Cmake error when adding Boost library

2015-02-20 Thread Parag Chandra
' command. Parag Chandra Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: Daniel Sáez danst...@gmail.commailto:danst...@gmail.com Date: Friday

Re: [CMake] find_library while cross compiling?

2015-05-01 Thread Parag Chandra
Yes, you need to set them in the toolchain file - at least, that is how I did it for NaCl. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 5/1/15, 10:29 AM, Robert

Re: [CMake] CMake, Android, and Eclipse ADT Integration

2015-05-01 Thread Parag Chandra
. The build completes by installing all *.so files to corresponding paths in the source tree so Gradle/Android Studio can find them 5. Open Android Studio build everything 6. Deploy to device Does this sound about right? On Thu, Apr 30, 2015 at 10:11 PM, Parag Chandra pa...@ionicsecurity.com wrote

Re: [CMake] VS 2015 RC and Android projects

2015-05-03 Thread Parag Chandra
Windows VMs at the moment, so if you try it our yourself, I would be very interested in hearing your results. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE

Re: [CMake] CMake, Android, and Eclipse ADT Integration

2015-04-30 Thread Parag Chandra
. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 4/30/15, 4:46 PM, Robert Dailey rcdailey.li...@gmail.com wrote: On Wed, Mar 11, 2015 at 11:42 AM, Robert Dailey

Re: [CMake] find_library while cross compiling?

2015-04-30 Thread Parag Chandra
(CMAKE_STATIC_LIBRARY_SUFFIX .a) set (CMAKE_EXECUTABLE_SUFFIX .pexe CACHE STRING FORCE) set (CMAKE_SHARED_LIBRARY_PREFIX lib) set (CMAKE_SHARED_LIBRARY_SUFFIX .so) Hope this helps. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc

Re: [CMake] Set Visual Studio parameters not supported directly by CMake

2015-05-05 Thread Parag Chandra
I asked about this a while back; I think it comes up repeatedly. The short answer seems to be that this is not supported, by design, so I have simply taken to post-processing the generated solutions with Python/Gradle scripts. Not ideal, but it has been working well enough for me. Parag

Re: [CMake] Where do all the extra clang flags come from in Xcode?

2015-05-18 Thread Parag Chandra
. You’ll also have to take stock of the default flags Xcode enables and ‘blacklist’ those. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 5/18/15, 1:20 PM, Paul

Re: [CMake] No CMAKE_CXX_COMPILER could be found

2015-04-17 Thread Parag Chandra
: -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ Hope this works for you too. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-01 Thread Parag Chandra
for Android: https://github.com/taka-no-me/android-cmake/blob/master/android.toolchain.c make Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 4/1/15, 12:58 PM, Jason

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Parag Chandra
Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 4/2/15, 8:15 AM, Jason Cooper cm...@lakedaemon.net wrote: Parag, On Wed, Apr 01, 2015 at 05:43:25PM +, Parag Chandra

Re: [CMake] iOS multi-arch library target and xcodebuild

2015-04-02 Thread Parag Chandra
variable. Now that it is a variable, you can override this behavior simply by passing ³MY_BUILD_ONLY_ACTIVE_ARCH=NO² to xcodebuild when you run it on the command line. Hope this helps. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com Ionic Security Inc

Re: [CMake] Visual Studio Project System Extensibilty

2015-06-09 Thread Parag Chandra
Somewhat related: CLion, the new C/C++ IDE from JetBrains, uses CMake directly as its project system: https://www.jetbrains.com/clion/ Not free, but also cross-platform. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png

Re: [CMake] Imported libraries and cross platform target names

2015-08-18 Thread Parag Chandra
dependency of the same name. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: Ette, Anthony (CDS) anthony.r.e

Re: [CMake] Imported libraries and cross platform target names

2015-08-18 Thread Parag Chandra
. In that case, the find_library isn’t even needed. Things do get a little more complicated when you want to distinguish between release/debug variants of the same library. For that you can use the DEBUG and OPTIMIZED keywords of target_link_libraries(). Parag Chandra Senior Software Engineer, Mobile Team

Re: [CMake] Cannot add target-level dependencies to non-existent target

2015-06-30 Thread Parag Chandra
this pretty messy. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: Glenn Coombs glenn.coo...@gmail.commailto:glenn.coo

[CMake] Generating Windows 10 universal project?

2015-08-13 Thread Parag Chandra
(or none at all), yields the following error: CMake Error at CMakeLists.txt:5 (project): Visual Studio 14 2015 supports Windows Store '8.0' and '8.1', but not '10.0'. Check CMAKE_SYSTEM_VERSION. Is this supported yet? Thanks, Parag Chandra Senior Software Engineer, Mobile Team Mobile

Re: [CMake] Visual Studio solution folders with 1 item in them

2015-07-23 Thread Parag Chandra
Couldn’t you use the source_group() command to do this? That is how I arbitrarily group my source files into folders within Visual Studio. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]https://ionic.com Ionic Security

Re: [CMake] How to add to CMAKE_C_FLAGS during cache priming?

2015-08-25 Thread Parag Chandra
that I essentially copy all the important flags from existing configurations that CMake is already going to create, and then later on in my CMakeLists I adjust them as needed. Hope this helps. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 https://ionic.com

Re: [CMake] Visual Studio Cross Compile

2015-11-02 Thread Parag Chandra
to be able to target Windows Phone and Android. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 <https://ionic.com> Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 10/29/15, 10:21 AM, "CMake on behalf of Michael Jaentsch&qu

Re: [CMake] Fwd: Expected behaviour for Tests/VSWinStorePhone

2015-09-09 Thread Parag Chandra
-DCMAKE_SYSTEM_VERSION=8.1 –G”Visual Studio 12 2013” -DCMAKE_GENERATOR_PLATFORM=ARM Hope this helps. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com/IonicSigHz.png]<https://ionic.com> Ionic Security Inc. 1170 Peachtree St. NE S

Re: [CMake] Port from Debian to Windows: Include files not found

2015-09-18 Thread Parag Chandra
the necessary include paths in it and manually re-run it, then the command would succeed? Maybe you need to explicitly set the supported LANGUAGES in your project() command so that it includes both assembly and C? Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410

Re: [CMake] Port from Debian to Windows: Include files not found

2015-09-18 Thread Parag Chandra
As a diagnostic measure, can you try running in verbose mode, ala: make VERBOSE=1 That will dump out the exact command lines that are being used, so you can see the search paths. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com

Re: [CMake] jom and cmake

2015-10-05 Thread Parag Chandra
If I’m not mistaken, anything you place after a ‘—‘ (that’s two dash characters) will be passed directly to the underlying build tool that cmake is driving. See here: https://cmake.org/cmake/help/v3.3/manual/cmake.1.html Parag Chandra Senior Software Engineer, Mobile Team Mobile

Re: [CMake] CMake not finding boost headers

2015-12-07 Thread Parag Chandra
dependencies (including Boost) in locations outside of the CMAKE_FIND_ROOT_PATH, and I didn’t want to relocate them all inside CMAKE_FIND_ROOT_PATH to satisfy the ONLY option. Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 [https://www.ionicsecurity.com

Re: [CMake] print a message during a specific build target

2015-11-24 Thread Parag Chandra
“add_dependencies” to tie these targets back to your original ones? So something like: add_custom_target(“test_print” …) add_dependencies(test test_print) Parag Chandra Senior Software Engineer, Mobile Team Mobile: +1.919.824.1410 <https://ionic.com> Ionic Security Inc. 1170 Peacht

Re: [CMake] [EXTERNAL]: Re: Xcode generator problems

2016-08-23 Thread Parag Chandra
aries in the first place. Probably not the answer you’re looking for, but I’m sure you can write a custom post-build step in CMake to do the same. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 8/23/16, 3:

Re: [CMake] [EXTERNAL]: Visual Studio generator, cross-compiling

2016-10-18 Thread Parag Chandra
se it became apparent that Google wasn’t putting much effort into keeping it a going concern when the equivalent Linux/MacOSX toolchains worked just fine. I guess things have improved since then? Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree S

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Parag Chandra
in there that will disable doc generation completely. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: Homero Cardoso de Almeida <homero...@gmail.com> Date: Tuesday, October 25, 2016 at 9:28 AM To: Parag Chand

Re: [CMake] [EXTERNAL]: CMake integration in Gradle (Android Studio)

2016-10-25 Thread Parag Chandra
. At this point, I’ve probably strayed too far from the intent of this mailing list, but I’m happy to discuss further with you offline. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 10/25/16, 9:48 AM

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Parag Chandra
off from 2.8.9; it just might be the version of CMake they happened to download at the time, rather than a hard requirement on it. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: Homero Cardoso de

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-25 Thread Parag Chandra
to me that if no SPHINX output formats are enabled, then doc generation should be skipped. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: Homero Cardoso de Almeida <homero...@gmail.com>

Re: [CMake] [EXTERNAL]: FindProtobuf in specified dirs

2016-10-20 Thread Parag Chandra
I believe the protobuf-config.cmake.in generates a protobuf-config.cmake file once you actually use CMake to build protobuf itself. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: CMake <cm

Re: [CMake] [EXTERNAL]: Errors with cmake for VS2105 (update 3) + clang + nmake

2016-11-21 Thread Parag Chandra
-tell-cmake-to-use-clang-on-windows Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 11/21/16, 12:33 PM, "CMake on behalf of Peter Jansen" <cmake-boun...@cmake.org on behalf of p.jan...@comput

Re: [CMake] [EXTERNAL]: Errors with cmake for VS2105 (update 3) + clang + nmake

2016-11-28 Thread Parag Chandra
I’m not sure if the toolset parameter will have any effect if you’re *not* also going to output vcxproj files, but can you try “v140_clang_c2” as the toolset? Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA

Re: [CMake] [EXTERNAL]: CMake and Code Signing in XCode 8 for iOS projects

2016-11-21 Thread Parag Chandra
it all the necessary cmd line args I need, so I just tacked on this bit of Python to the end of my Gradle script. Hope this helps. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 11/19/16, 3:56 PM

Re: [CMake] [EXTERNAL]: Re: CMake integration in Gradle (Android Studio)

2016-10-31 Thread Parag Chandra
Presumably you’ve tried this? https://developer.android.com/studio/projects/add-native-code.html Keep in mind that this is going to use Google’s cross-toolchain file, which may be incompatible with what you already have. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410

Re: [CMake] [EXTERNAL]: Policy to forbid linking with non-cmake-targets

2016-12-12 Thread Parag Chandra
_libraries() directly, I invoke this macro with similar syntax: LinkOnlyIfLibraryIsTarget(executableName library1 library2 library3) Hope this helps. Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 On 12/12/1

Re: [CMake] [EXTERNAL]: Linker flags on all except a couple of programs

2017-01-13 Thread Parag Chandra
in each of the 5 projects that needs it. You might even be able to do this once, in a separate .cmake file, as either a function or macro, and then simply include() that .cmake file in each of the 5 projects for better maintenance. Parag Chandra Technical Lead, Mobile Team Mobile

Re: [CMake] [EXTERNAL]: Up to date iOS instructions

2017-01-09 Thread Parag Chandra
EVELOPER_ROOT} ${CMAKE_IOS_SDK_ROOT} ${CMAKE_PREFIX_PATH} CACHE string "iOS find search path root") # default to searching for frameworks first set (CMAKE_FIND_FRAMEWORK FIRST) # set up the default search directories for frameworks set (CMAKE_SYSTEM_FRAMEWORK_PATH ${CMAKE_IOS

Re: [CMake] [EXTERNAL]: To include external libraries using Cmake

2017-01-04 Thread Parag Chandra
may be helpful: https://cmake.org/cmake/help/v3.7/command/find_library.html https://cmake.org/cmake/help/v3.7/command/if.html Parag Chandra Technical Lead, Mobile Team Mobile: +1.919.824.1410 Ionic Security Inc. 1170 Peachtree St. NE STE 400, Atlanta, GA 30309 From: CMake <cmake-b