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
AKE_XCODE_ROOT}/Toolchains/XcodeDefault.xctoolchain/usr/bin"
${CMAKE_IOS_DEVELOPER_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 se
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 on behalf of
_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
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
-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"
wrote:
I am trying to use cmake to generat
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
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
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
Date: Tuesday, October 25, 2016
.
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
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
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
Date: Tuesday, October 25, 2016 at 9:28 AM
To: Parag Chandra , "cmake@cmake.org"
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 on behalf
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 Peachtre
es 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:
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
“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
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&quo
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
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
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
-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
{cfg}_RTLDLL ${CMAKE_${flag}_FLAGS_${cfg}}
CACHE STRING "${flag} flags for ${cfg}_RTLDLL" FORCE)
endforeach ()
endforeach ()
Here you can see 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
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
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: , "Anthony (CDS)"
ma
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 Softwar
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>
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 mailto:glenn.coo...@gmail.com>&
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
. 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,
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
trouble with my 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.
2. Generate native project with CMake + android toolchain
>3. Build the native libraries with the project generated by CMake
>4. 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
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
.
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" wrote:
>On Wed, Mar 11, 2015 at 11:42 AM, Robert Dail
quot;)
set (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, Mobi
he command line:
-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 4
ich tells you that the setting is taking
its value from another 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 Te
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" wrote:
>Parag,
>
>On Wed, Apr 01, 2015 at 05:43:25PM +, Pa
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
-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]<ht
Have you looked at CMAKE__FLAGS_, 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.ionicsecurit
27;find_library' 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 mailto:danst...@gmail.com&g
Try running:
sudo make install
Instead.
On Feb 10, 2015, at 7:45 AM, Gunjan Gautam
mailto: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 after step 3:
CMake Erro
naming that plist.in file so that it no longer exists results in no
errors from CMake, so it seems that our template is being completely ignored.
Is this a bug?
Parag Chandra
Software Engineer, Mobile Team
Mobile: +1.919.824.1410
[https://www.ionicsecurity.com/IonicSigHz.png]<https://ionic.co
ortant one,
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
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.
Pa
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, Atlan
ve tried both 3.1rc2 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
--
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" wr
foreach (flag_var CMAKE_C_FLAGS_${cfg}_Clone
CMAKE_CXX_FLAGS_${cfg}_Clone)
if (${flag_var} MATCHES "/MD")
string(REGEX REPLACE "/MD" "/MT" ${flag_var} "${${flag_var}}")
endif ()
endforeach ()
endforeach ()
Hope this helps.
Parag Chandra
Software
(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
-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" wrote:
>Hi all,
>
ional XML nodes? 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 ch
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 Chand
t;/path/to/Release/Bar.lib")
Then the linker inputs are resolved correctly, but of course 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 Wi
56 matches
Mail list logo