Re: [CMake] optional parameters in add_custom_target?

2019-05-20 Thread Gregor Jasny via CMake
Hello, On 20.05.19 16:01, hex wrote: What means command1 [args1...]]? Or, should this read *add_custom_target(Name [ALL] [COMMAND command1 [args1...]]** **   [COMMAND command2 [args2...] ...]* I believe this is due to backward compatibility (pre 2.6) reasons so that you could still write:

Re: [CMake] Why is the binary md5sum value different?

2019-05-17 Thread Gregor Jasny via CMake
On 17.05.19 02:53, Gelryun wrote: I write MakefileList.txt like this. include_directories(${COMMINC_DIR} ${DBINC_DIR} ./) link_directories(${DBLIB_DIR} ${COMMLIB_DIR}) set(DBUSERID withdb/ufdb) PREPROCESS_ORACLE_FILES(ACK_

Re: [CMake] Fwd: CMAKE_HOST_SYSTEM_NAME is empty

2019-04-28 Thread Gregor Jasny via CMake
Hello, On 25.04.19 09:29, Orban, Laszlo wrote: Please help me an issue I'm facing with CMAKE_HOST_SYSTEM_NAME on FreeBSD 10.3. It gives back empty string, if I read it before the 'project(...)'. As far as I understood, CMAKE_SYSTEM_NAME can be used only after the 'project(...)' call, but CMAKE

Re: [CMake] CMake Project Generation Speedup

2019-03-21 Thread Gregor Jasny via CMake
Hello, On 17.11.16 17:15, Damian wrote: We are still in the process of switching our large Make-based build to CMake. One of the issues we're running into is the time it takes to reparse and regenerate the CMake project (whether ninja, VS, or make) after touching any CMake file. To give you an

Re: [CMake] The Xcode generator and ASM_NASM support

2018-10-03 Thread Gregor Jasny via CMake
Hello, On 10/3/18 6:08 PM, Tom Finegan via CMake wrote: I'm trying to get rid of some local CMake scripting for building assembly with nasm and yasm, but I'm running into a problem with the Xcode generator. For the make and ninja generators, everything is fine-- nasm and yasm are both working

Re: [CMake] CMake update for older PPC7

2018-06-23 Thread Gregor Jasny via CMake
Hello, On 6/20/18 3:10 AM, A. Sanchez via CMake wrote: > Hello. I have been trying to get a good version of CMake for my PS3 cluster > running linux. But everything I try to compile needs CMake 3.0 or higher? Is > there any way to update from CMAKE 2.4. Right now I am running Fedora 9, > since

Re: [CMake] string MATCHALL

2017-10-24 Thread Gregor Jasny via CMake
In case it helps: the GUI can contains a regex explorer where you can play with rexexes. But beware: there are some corner cases around quoting special things. I'd suggest to use if( ... MATCHES ...) And read the match from the CMAKE_MATCH_ variables. On Oct 24, 2017 11:16, "Edoardo Pasca" wrot

Re: [CMake] How to refer to *.so files in Android NDK?

2017-06-26 Thread Gregor Jasny via CMake
On 6/22/17 4:01 PM, Robert Dailey wrote: > In my toolchain file for Android NDK, I specify the following *.so > paths manually: > > set( ANDROID_PREBUILT_LIBRARIES > > ${CMAKE_ANDROID_NDK}/sources/cxx-stl/gnu-libstdc++/4.9/libs/x86/libgnustl_shared.so > ${CMAKE_ANDROID_NDK}/platforms/andr

Re: [CMake] Xcode duplicate filename issue?

2017-06-26 Thread Gregor Jasny via CMake
Hello, On 6/26/17 8:12 PM, Watson, Andre wrote: > We're currently migrating a huge internal system over to CMake, and we're > nearing completion, but have run into an issue with the generated Xcode > projects. We build this system on Windows, Linux, and Mac (both makefile and > Xcode). On all

Re: [CMake] ZERO_CHECK generation and Xcode

2017-03-29 Thread Gregor Jasny via CMake
On 3/29/17 10:15 PM, Steven Velez wrote: > I do have a pretty large project with around 142 targets. > > Another characteristic of note, and which I noticed while investigating > this is that our project suffers from > https://gitlab.kitware.com/cmake/cmake/issues/14297, and I think it is > becaus

Re: [CMake] ZERO_CHECK generation and Xcode

2017-03-29 Thread Gregor Jasny via CMake
Hi Steven, On 3/29/17 5:24 PM, Steven Velez wrote: > If I understand correctly the purpose of the ZERO_CHECK target is to update > the generated project files when necessary. > > That's fine, but I have noticed on Xcode (8.2) that when ZERO_CHECK runs > and updates the project, it causes the xcod

Re: [CMake] Multiple ELSE() clauses

2017-03-20 Thread Gregor Jasny via CMake
On 3/20/17 12:09 PM, Sergey Zakharchenko wrote: > Rolf, > > 2017-03-20 14:06 GMT+03:00 Rolf Eike Beer : >> https://gitlab.kitware.com/cmake/cmake/issues/14335 > > Since the issue is marked "easy" and it's over 3 years old, I assume > nobody cares? OK then. https://gitlab.kitware.com/cmake/cmake/

Re: [CMake] Multiple ELSE() clauses

2017-03-20 Thread Gregor Jasny via CMake
Hello, On 20/03/2017 12:09, Sergey Zakharchenko wrote: Rolf, 2017-03-20 14:06 GMT+03:00 Rolf Eike Beer : https://gitlab.kitware.com/cmake/cmake/issues/14335 Since the issue is marked "easy" and it's over 3 years old, I assume nobody cares? OK then. I can try to fix it. I hope we don't need

Re: [CMake] Missing 'undefined dynamic_lookup' flag

2017-03-12 Thread Gregor Jasny via CMake
On 3/12/17 6:45 PM, Gregor Jasny wrote: > On 3/10/17 12:31 AM, Cedric Doucet wrote: >> Actually, I should not modify CMAKE_CXX_COMPILER_FLAGS. >> It seems that the problem comes from the variable >> CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS which only conta

Re: [CMake] Missing 'undefined dynamic_lookup' flag

2017-03-12 Thread Gregor Jasny via CMake
Hello, On 3/10/17 12:31 AM, Cedric Doucet wrote: > Actually, I should not modify CMAKE_CXX_COMPILER_FLAGS. > It seems that the problem comes from the variable > CMAKE_SHARED_MODULE_CREATE_CXX_FLAGS which only contains ' -bundle > -Wl,-headerpad_max_install_names' but not ' -undefined dynamic_lo

Re: [CMake] Mac OS. Cmake changes it's behaviout when building framework for iOS simulator

2017-02-03 Thread Gregor Jasny via CMake
Hello, On 02/02/2017 16:15, Сергей Бойцов wrote: Hello. I'm looking for some help cause i have faced a really strange problem with building frameworks on Mac OS So i have: Mac OS X : el captain Xcode 8.0 CMake 3.3.2 [1], CMake 3.4.5 [2], CMake 3.5-3.6 [3] CMake [1] produced correct framework

Re: [CMake] Using XCODE_PRODUCT_TYPE to make kexts

2017-01-16 Thread Gregor Jasny via CMake
Hello, On 16/01/2017 15:43, Harry Mallon wrote: Sorry look like it is not in the release build yet. correct, please use a recent nightly: https://cmake.org/files/dev/?C=M;O=D Maybe you could report back if the attribute works for you. Thanks, Gregor -- Powered by www.kitware.com Please ke

[CMake] MSVC15 variable available for Visual Studio 2017

2017-01-11 Thread Gregor Jasny via CMake
Hello, I wonder if there is a reason why no MSVC15 variable is available for Visual Studio 2017? I'm using those MSVCxx variables and CMAKE_GENERATOR_TOOLSET to detect the active toolset: # Visual Studio 2008 if((MSVC90 AND "${CMAKE_GENERATOR_TOOLSET}" STREQUAL "") OR (CMAKE_GENERATOR_TO

Re: [CMake] A trouble in using cmake for xcode

2016-12-03 Thread Gregor Jasny via CMake
On 03/12/2016 19:46, Gregor Jasny wrote: > On 03/12/2016 15:07, wy39666...@163.com wrote: >>>> I have a trouble in using cmake.I try to find a way to resolve that for a >>>> long time, but finally get no results. I attempt to create an ios >>>> application

Re: [CMake] A trouble in using cmake for xcode

2016-12-03 Thread Gregor Jasny via CMake
On 03/12/2016 15:07, wy39666...@163.com wrote: >>> I have a trouble in using cmake.I try to find a way to resolve that for a >>> long time, but finally get no results. I attempt to create an ios >>> application imessage extension by cmake but i can't find a suitable >>> command. So i contact you

Re: [CMake] A trouble in using cmake for xcode

2016-12-03 Thread Gregor Jasny via CMake
Hello, On 01/12/2016 07:02, wy39666...@163.com wrote: > I have a trouble in using cmake.I try to find a way to resolve that for a > long time, but finally get no results. I attempt to create an ios application > imessage extension by cmake but i can't find a suitable command. So i contact > you

Re: [CMake] v3.7.0 - archive_cryptor_private.h - compile error

2016-11-26 Thread Gregor Jasny via CMake
ber 2016 09:29:14 MEZ, schrieb Gregor Jasny via CMake > : >> Hello, >> >> On 25/11/2016 19:25, Nathan Sizemore wrote: >>> I receive the following when building: >>> >>> [ 40%] Building C object >>> >> Utilities/cmlibarchive/libarchive/CM

Re: [CMake] v3.7.0 - archive_cryptor_private.h - compile error

2016-11-26 Thread Gregor Jasny via CMake
Hello, On 25/11/2016 19:25, Nathan Sizemore wrote: > I receive the following when building: > > [ 40%] Building C object > Utilities/cmlibarchive/libarchive/CMakeFiles/cmlibarchive.dir/archive_cryptor.c.o > In file included from > /home/nathan/development/cmake/Utilities/cmlibarchive/libarchive/a

Re: [CMake] CMake 3.6 and OSX

2016-11-04 Thread Gregor Jasny via CMake
Hello, On 02/11/2016 06:01, Robert Ramey wrote: > Here is what I'm seeing: > > a) it looks like CMake is looking for boost_filesystem rather than > libboost as I expect. (same for system). > > b) even if I tweak findBoost to force the system to look for libboost... > it still fails > > b) If I

Re: [CMake] CMake 3.6 and OSX

2016-10-31 Thread Gregor Jasny via CMake
Hello Robert, On 29/10/2016 22:03, Robert Ramey wrote: > I've just "upgraded" to version 3.6 of CMake. I'm using Xcode with the > clang compiler. Now when I'm trying to configure a project I'm getting: > > The C compiler identification is unknown > The CXX compiler identification is unknown > C

Re: [CMake] CMAKE_OSX_DEPLOYMENT_TARGET vs CMAKE_OSX_SYSROOT

2016-09-25 Thread Gregor Jasny via CMake
On 23/09/2016 22:35, Gregor Jasny wrote: > On 21/09/2016 10:54, James Turner wrote: >> >>> On 20 Sep 2016, at 16:00, Braden McDaniel wrote: >>> >>> When setting CMAKE_OSX_SYSROOT to the unversioned directory name (using >>> Xcode 8, as it happens) a

Re: [CMake] CMAKE_OSX_DEPLOYMENT_TARGET vs CMAKE_OSX_SYSROOT

2016-09-23 Thread Gregor Jasny via CMake
On 21/09/2016 10:54, James Turner wrote: > >> On 20 Sep 2016, at 16:00, Braden McDaniel wrote: >> >> When setting CMAKE_OSX_SYSROOT to the unversioned directory name (using >> Xcode 8, as it happens) and setting CMAKE_OSX_DEPLOYMENT_TARGET, I get this >> error: >> >> >> -- The CXX compiler iden

Re: [CMake] XCode generator and .metal shader files

2016-07-26 Thread Gregor Jasny via CMake
Hello, On 22/07/16 23:07, Victor Rykov wrote: > After adding a .metal file to a target via add_executable the metal file > does not get pushed to the generated project`s Compile Sources queue and > subsequently does not compile during project build unless I add the file to > the queue manually fro

Re: [CMake] Logical block opening error

2016-07-03 Thread Gregor Jasny via CMake
Hello, an editor with syntax highlighting and indention support would have helped here. On 04/07/16 01:26, Sambeet Panigrahi wrote: IF(NOT NOT_BUILD_SHARED ) ADD_LIBRARY(orocos-rtt-mqueue-${OROCOS_TARGET}_dynamic SHARED ${CPPS}) TARGET_LINK_LIBRARIES(orocos-rtt-mqueue-${OROCOS_TARGET}_d

Re: [CMake] Cannot include third-party Framework headers directories as system directories in XCode for avoiding their warning

2016-05-11 Thread Gregor Jasny via CMake
Hello, On 11/05/16 09:25, Attila Krasznahorkay wrote: > I'm a bit surprised by this. I had to explicitly tell CMake not to treat > includes coming from imported targets as system includes. Using this variable: > > https://cmake.org/cmake/help/v3.0/variable/CMAKE_NO_SYSTEM_FROM_IMPORTED.html > ht

Re: [CMake] [cmake-developers] CLang error when building iOS bundle

2016-05-11 Thread Gregor Jasny via CMake
Hello, On 11/05/16 21:22, Roman Wüger wrote: > I got the following error when linking the iOS bundle: > > clang: error: cannot specify -o when generating multiple output files > > I didn’t found anything about the error in the internet, so maybe someone > has already solved such error? > > Does

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-10 Thread Gregor Jasny via CMake
On 10/05/16 01:52, Siyuan Ren wrote: > Version 7.3.1 (7D1014) Could you please share your build and source directory with me? -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offers various services to support

Re: [CMake] Xcode generator results in a project file without optimization

2016-05-09 Thread Gregor Jasny via CMake
On 02/05/16 11:16, Siyuan Ren wrote: > I have CMake 3.5.2. > > I write a simple CMakeLists.txt like the below > > ``` > project(mytest) > add_executable(mytest test.cpp) > ``` > > Then generate the Xcode project file with `cmake -G Xcode .`. Open the > project file in Xcode, and I found the opti

Re: [CMake] OBJECT Libraries with Xcode Generator

2016-04-06 Thread Gregor Jasny via CMake
On 06/04/16 20:32, Matthew Keeler wrote: > > I think I ran into a bug but I am wondering if anyone has seen it an worked > around. > > I have a source structure like the following (this is a contrived small > example to illustrate the problem): > > - CMakeLists.txt > - main.c > - lib >

Re: [CMake] EFFECTIVE_PLATFORM_NAME not expanded in TARGET_* generator expressions on iOS

2016-03-30 Thread Gregor Jasny via CMake
Hello, I fear you're one of the first users of the XCtest feature :) On 21/03/16 13:42, Vladimír Vondruš wrote: Hello, I came across this problem when trying to use XCTest macros ( https://cmake.org/cmake/help/latest/module/FindXCTest.html ) on iOS. When compiling for OSX, ctest properly exe

Re: [CMake] CMAKE_SIZEOF_VOID_P is unset when building libgit2 on Windows

2016-03-25 Thread Gregor Jasny via CMake
On 25/03/16 22:11, Sebastian Schuberth wrote: > I also just realized CMAKE_C_ABI_COMPILER is set to FALSE in > CMakeCCompiler.cmake. Looking at CMakeError.log was a good hint. I > found: > > ---8<--- > Building C object CMakeFiles/cmTC_c0166.dir/CMakeCCompilerABI.c.obj > > C:/Ruby-DevKit/mingw/bi

Re: [CMake] check_cxx_compiler_flag fails silently for complex compiler paths

2016-02-26 Thread Gregor Jasny via CMake
Hello, On 26/02/16 00:00, Andrew Hundt wrote: > I believe check_cxx_compiler_flags is failing due to a long/complicated > compiler path. > > Specifically my compiler is set to: > /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ > > CMake version: 3.4.3 >

Re: [CMake] [ANNOUNCE] CMake 3.5.0-rc3 is now ready!

2016-02-24 Thread Gregor Jasny via CMake
Hello, I discovered that the Visual Studio 2015 Generator does not work with v120 toolsets (#15986) and consider that major issue. As far as I see this is related to the debug information setting from #15894. Thanks, Gregor -- Powered by www.kitware.com Please keep messages on-topic and c

[CMake] Drop support for older Xcode versions?

2016-02-06 Thread Gregor Jasny via CMake
Hello, I'd like to get your feedback on deprecating or dropping support for older Xcode versions. During changes on the Xcode generator it gets harder and harder to test against old and very old Xcode versions like 3 and 4. Are there still users around for these versions of Xcode? PS: I'm talkin

Re: [CMake] Using ccache with Xcode generator

2016-02-01 Thread Gregor Jasny via CMake
Hello, On 01/02/16 04:52, Craig Scott wrote: > After a bit of experimenting, it seems that getting ccache working with the > Xcode generator isn't so straightforward. For Ninja and Unix Makefiles, the > RULE_LAUNCH_COMPILE global property nicely gives us the behaviour we want, > but this doesn't w

Re: [CMake] Adding definitions to compile one file ?

2016-01-21 Thread Gregor Jasny via CMake
Hi, On 21/01/16 15:14, Vania Joloboff wrote: Hi I want to add two definitions to compile one specific files in addition to the global definitions. I have the following problem. If I use set_source_files_properties(source.cpp PROPERTIES COMPILE_DEFINITIONS VAR1=${MY_VAR1} VAR2=${MY_VAR2} ) the

Re: [CMake] Add support for cross compiling to VxWorks

2016-01-01 Thread Gregor Jasny via CMake
Hello, please have a look at some other toolchain file like the BlackBerry one: > https://github.com/blackberry/OGRE/blob/master/src/CMake/toolchain/blackberry.toolchain.cmake On 30/12/15 21:38, Kuhl, Brian wrote: > I'm trying to add support for VxWorks to CMake. > My current dilemma is that the

Re: [CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

2015-12-09 Thread Gregor Jasny via CMake
On 08/12/15 20:21, digitalriptide wrote: > Thank you Gregor! I have tried the Makefile generator, but on OS X -isystem > still seems to be missing with GCC. The -isystem flag appears with Clang, > however. I have installed CMake 3.4.1 and GCC 5.3.0, both through MacPorts. > I can provide a sample p

Re: [CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

2015-11-20 Thread Gregor Jasny via CMake
On 15/11/15 21:13, digitalriptide wrote: Did this fix make it into 3.4? After upgrading to 3.4, GCC still seems to lack -isystem flags on OS X. Is there anything extra I need to do? It should be fixed for the Makefile and Ninja generators but not Xcode. My proposed fix broke older Xcode version

Re: [CMake] How to build cmake to have http support?

2015-11-15 Thread Gregor Jasny
Hello, On 14/11/15 20:23, Cedric Doucet wrote: > I managed to compile cmake such that it support https by the past, but I > can't remember how I did it. > I remember I installed openssl and pass some flags to cmake. > > Could anyone remember me how to do it? HTTPS support worked for me after

[CMake] Greediness of kwsys regex

2015-11-02 Thread Gregor Jasny via CMake
Hello, Today I stumbled across funny behavior of string(REGEX REPLACE: This one would lead to an empty match: string(REGEX REPLACE "(.*)" "\\1Proxy.cpp" _out "IConnectionCallback") This one would match whole "IConnectionCallback" string(REGEX REPLACE "(.+)" "\\1Proxy.cpp" _out "IConnectionCa

Re: [CMake] Known issues with Xcode 6.x and CMake

2015-10-19 Thread Gregor Jasny via CMake
Hello, On 17/10/15 18:28, Michael Jackson wrote: Are there any known issues with Xcode 6.4 and CMake 3.3.x? I ask because in our project when we generate the Xcode project we end up with 2 or 3 executables listed in the drop down combo box. We also end up with lots of duplicate targets in the

Re: [CMake] [cmake-developers] Xcode build settings and BullseyeCoverage

2015-10-10 Thread Gregor Jasny via CMake
Hello, On 09/10/15 17:51, Roman Wüger wrote: > I’m trying to configure and build a project with the “Xcode” generator and > the bullseye coverage tool. > > Without the bullseye coverage tool it works fine but if I want to use it I > had to do the following workaround: > http://www.bullseye.com/he

Re: [CMake] FindGit.cmake proposal

2015-09-14 Thread Gregor Jasny via CMake
Hello, On 10/09/15 16:34, Daniel Wirtz wrote: > i've now quite often encountered the need to access basic git > information about the source tree from within cmake. > i've attached the current FindGit.cmake module shipped with CMake > enhanced by two functions: getGitRevision and getGitBranch. > i

Re: [CMake] Writing find packages

2015-09-05 Thread Gregor Jasny via CMake
Hello, On 03/09/15 23:15, Robert Dailey wrote: > How recent is this documentation? > http://www.cmake.org/Wiki/CMake:How_To_Find_Libraries#Writing_find_modules > > It seems rather old. What is the modern way of doing this? The cmake-developer help page has a section about modules: http://www.cma

Re: [CMake] How to do that w/o LOCATION property of a target...

2015-09-05 Thread Gregor Jasny via CMake
On 05/09/15 08:22, Alex Turbov wrote: > Hi, > > in my project I have `add_executable()`. after that, in a current binary > dir I need to render a `*.cmake` script (via `configure_file()`) to be > running from `add_test()` (as `cmake -P`) which should start just the > compiled executable via `execu

Re: [CMake] target_include_directories SYSTEM adds -isystem to Clang, but not GCC

2015-08-20 Thread Gregor Jasny via CMake
Hello, On 17/08/15 01:01, digitalriptide wrote: When I add SYSTEM to target_include_directories, for example using target_include_directories( my_target SYSTEM PUBLIC ${MY_LIBRARIES} ) in Clang, CMake prepends -isystem to the relavent -I/my/library/path type flags. With GCC, however, I see no -i

Re: [CMake] cmake iOS application + framework link error

2015-08-20 Thread Gregor Jasny via CMake
odesign_allocate export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/Users/gjasny/src/cmake/_build/bin:/Users/gjasny/bin:/usr/local/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11

[CMake] Create space delimited string with $ genex

2015-07-08 Thread Gregor Jasny via CMake
Hello, in my build process I need to call a compiler like tool with the same include directories as a certain target. I tried the following: cmake_minimum_required(VERSION 3.2) project(cmake-genex C) add_library(dummy dummy.c foo.c) target_include_directories(dummy PUBLIC foo bar) set(prop "$"

Re: [CMake] Xcode project generation failed

2015-06-17 Thread Gregor Jasny via CMake
On 17/06/15 16:29, Michael Jackson wrote: > Just to follow up with this issue in case anyone else has issues with Xcode > here is what happened. Thanks to Gregor for taking a look at the generated > project file he was able to identify an issue where there were file paths in > the form of "//" i

Re: [CMake] Xcode project generation failed

2015-06-16 Thread Gregor Jasny via CMake
On 16/06/15 21:27, Gregor Jasny wrote: > Hello, > > I applied some fixes to what becomes CMake 3.3. could you please test > the release candidate? Sorry, somehow overlooked the statement about RC in your mail. > On 16/06/15 16:27, Michael Jackson wrote: >> Running OS X 10

Re: [CMake] Xcode project generation failed

2015-06-16 Thread Gregor Jasny via CMake
Hello, I applied some fixes to what becomes CMake 3.3. could you please test the release candidate? On 16/06/15 16:27, Michael Jackson wrote: > Running OS X 10.8.5 with Xcode 5.1.1 and Cmake 3.2.x and 3.3.RC and neither > generate a Xcode project file that can be opened by Xcode. We get valid Ni

Re: [CMake] CMAKE_COLOR_MAKEFILE

2015-06-14 Thread Gregor Jasny via CMake
On 10/06/15 04:17, Dave Yost wrote: > Hey, I love colors. But one of my users doesn’t. You could try the Ninja generator instead of Makefile. It much often faster, as verbose as necessary, and black'n'white. Thanks, Gregor -- Powered by www.kitware.com Please keep messages on-topic and check t

Re: [CMake] How do I set an Xcode property on the global/root project?

2015-06-14 Thread Gregor Jasny via CMake
Hi Eric, On 14/06/15 14:38, Eric Wing wrote: > I have been successful at setting Xcode properties on specific targets > with CMake via: > > set_property (TARGET ${TARGET} PROPERTY > XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE}) > > But I have been unable to set properties on the global/root

Re: [CMake] Apple Metal Support in Xcode?

2015-04-29 Thread Gregor Jasny
Hello, On 29/04/15 01:25, Marek Vojtko (Firaxis) wrote: My questions: 1) Is there anything I can do right now (with CMake 3.2.2.) that would make Xcode handle .metal files correctly? 2) Are there plans to support .metal files via CMake and if so, how far along are they? Does the XCODE_EXPLIC

Re: [CMake] Detecting -m32 build target on 64-bit host

2015-04-24 Thread Gregor Jasny
Hi, On 23/04/15 16:54, Mateusz Loskot wrote: > Surprisingly, I'm having trouble to figure out how to determine, > that in Linux 64-bit OS, I'm building a project with -m32 specified. > IOW, any CMake variable or macro to tell me target architecture > of a build that is being configured is 32 or 64

Re: [CMake] Correct way to set machos-min-version in Cmake 3.2.1

2015-03-18 Thread Gregor Jasny
Hello, On 18/03/15 06:08, James Turner wrote: > I’d imagine this is a FAQ, but I’ve Googled without success. Apologies if the > answer is out there. > > With Cmake 3.2.1, some behaviour seems to have changed, in the handling of > CMAKE_OSX_DEPLOYMENT_TARGET. > > I am trying to build using the

Re: [CMake] Xcode generator ignores shared library made of object libraries

2015-03-09 Thread Gregor Jasny
Hello Pere, On 09/03/15 12:59, Pere Mato Vila wrote: I am using cmake version 3.1.3 on MacOSX 10.10.2. I want to build a SHARED library made exclusively of OBJECT libraries. This works well with the Makefile generator but fails with the Xcode generator. To reproduce the problem is very s

Re: [CMake] Specify 32-bit compilation to Clang

2015-01-19 Thread Gregor Jasny
Hello Robert, On 19/01/15 20:42, Robert Dailey wrote: > I'm running CMake 3.1 on Mint 64-bit OS. I need to generate an Eclipse > project using Ninja that uses Clang to build a 32-bit application. > > When I do this: > > add_definitions("-m32") > > For some reason my code is not able to include

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

2014-12-19 Thread Gregor Jasny
Hello, On 16/12/14 23:23, Parag Chandra wrote: > Basically, my colleague gets the following errors when he tries to run CMake > on a project that I created: > > -- The C compiler identification is unknown > -- The CXX compiler identification is unknown > CMake Error in : > No CMAKE_C_COMPILER

Re: [CMake] xcode generator's use of explicitFileType vs lastKnownFileType

2014-12-19 Thread Gregor Jasny
Hi, On 18/12/14 23:59, Radu Margarint wrote: > I hope I'm asking this in correct place. I have recently been running > into some issues using the xcode project files generated though cmake, > and I have traced them down to PBXFileReference nodes using > explicitFileType attributes (vs lastKnownFil

Re: [CMake] Get Visual Studio target Arch

2014-09-08 Thread Gregor Jasny
On 06/09/14 16:02, Alexey Petruchik wrote: > I want to use different library folders for x64/x86/arm architectures. > Cmake has different generators for each arch: "Visual Studio 12 > 2013", "Visual Studio 12 2013 ARM", "Visual Studio 12 2013 Win64". Is there > any cmake var to get visual studio ta

[CMake] How to query the SYSTEM flag for directory property INCLUDE_DIRECTORIES

2014-06-15 Thread Gregor Jasny
Hello, while working on -isystem support for cotire I did not find a way to query the "SYSTEM" flag on the INCLUDE_DIRECTORIES directory property. Did I miss something or was this omitted intentionally? Thanks, Gregor -- Powered by www.kitware.com Please keep messages on-topic and check the C

Re: [CMake] How to handle find_package inter-dependencies

2014-05-19 Thread Gregor Jasny
Hello, for reference: On 10/03/14 20:53, Gregor Jasny wrote: > I wrote some FindXYZ modules that utilize FindPackageHandleStandardArgs > to find precompiled libraries. Now I have to "find" a library that > itself depends on another library and I wonder what's the re

[CMake] How to handle find_package inter-dependencies

2014-03-10 Thread Gregor Jasny
Hello, I wrote some FindXYZ modules that utilize FindPackageHandleStandardArgs to find precompiled libraries. Now I have to "find" a library that itself depends on another library and I wonder what's the recommended way to do so? I thought about nesting the find_package calls but then I have the

Re: [CMake] Problems with auto-generated sources

2013-10-01 Thread Gregor Jasny
Hello, On 9/30/13 7:19 PM, Williams, Norman K wrote: cmake_minimum_required(VERSION 2.8) project(Test) add_custom_command(OUTPUT file.c COMMAND echo "GENERATING FILE" COMMAND ${CMAKE_COMMAND} -E remove file.c

[CMake] Check for defined preprocessor symbol

2013-02-17 Thread Gregor Jasny
Hello, I need a function to check for existing preprocessor symbols. Something like CHECK_C_PREPROCESSOR_SYMBOL_EXISTS("__i386__", X86) CHECK_C_PREPROCESSOR_SYMBOL_EXISTS("__x86_64__", X64) I guess a hack would be to (ab)use CHECK_TYPE_SIZE for this, but is the a more elegant solution? Thanks,

Re: [CMake] Cmake absolute paths with gcc, __FILE__ , and logging

2013-01-04 Thread Gregor Jasny
Hello Willy, On 1/4/13 4:58 PM, Willy Lambert wrote: > I am trying to convert an existing project from Manual Makefiles to > Cmake for building it. > We have a logger that rely on the __FILE__ define to say which file is > "writing" into the log but this is broken by the CMake default > behavior u

[CMake] How to declare a text file as CMakeLists.txt dependency

2012-04-03 Thread Gregor Jasny
Hello, In my root project CMakeLists.txt file I'm using the file(STRINGS ...) command to read some version numbers from a text file. Now I'd like to declare this text file as a CMakeLists.txt dependency to re-trigger the CMake configuration step if a version number changes (Just like re-confi

Re: [CMake] assembler support

2007-09-30 Thread Gregor Jasny
Hi, 2007/7/2, Alexander Neundorf <[EMAIL PROTECTED]>: > since last week cmake cvs has basic support for assembler. > Assembler is different from other languages in that it actually is no single > language, but there are many different assembler languages. thanks for your work in this area! I've s

[CMake] TRY_COMPILE and CMAKE_C_FLAGS

2006-10-21 Thread Gregor Jasny
Hi, I want to test if the current GNU compiler accept the -fopenmp flag. In my cmake module I have the following test: TRY_COMPILE( OPENMP_COMPILED ${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/cmake/Modules/CheckForOpenMP.c CMAKE_FLAGS -DCMAKE_C_FLAGS:STRING="-fopenmp" OUT