[CMake] XCode target membership

2019-03-14 Thread Roman Wüger
Hello,

since Xcode 10 I noticed that I must check the Checkbox (Target membership on 
the right pane) for my target when I want that the assets are recognized for 
the specified target.

Is there a way to automatically set this option via CMake? The problem is that 
when I forget to set this check mark (or it is an automated build), then no app 
icon will be set.

Thanks in advance

Regards
Roman
-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[CMake] Basic question how to find -lm include and lib dir with find_package or otherwise

2019-03-14 Thread workbe...@gmx.at
Hi everyone,

i'm searching for a way to find the right include dir so that -lm can be
found, the is not find_package for this, is /usr/lib and /usr/include a
default because he find it without me adding any include or lib path for
the build.


best regards!



pEpkey.asc
Description: application/pgp-keys
-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[CMake] not sure if I am verifying download correctly: something kooky

2019-03-14 Thread Gavin M2301
Hi-
 gpg2 --verify cmake-3.14.0-SHA-256.txt.asc cmake-3.14.0-SHA-256.txt
gpg: Signature made Thu, Mar 14, 2019 10:26:24 AM EDT
gpg:using RSA key C6C265324BBEBDC350B513D02D2CEF1034921684
gpg: Can't check signature: No public key

sha256sum cmake-3.14.0-win64-x64.msi
4cbc62929f313d9890d377fa022753e9e5509e7afa3e16978127b7b2813633cf
*cmake-3.14.0-win64-x64.msi

4cbc62929f313d9890d377fa022753e9e5509e7afa3e16978127b7b2813633cf
cmake-3.14.0-win64-x64.msi

 gpg2--keyid-format long --show-key cmake-3.14.0-SHA-256.txt.asc
-bash: gpg2--keyid-format: command not found

That last one might be because it is a new gpg2 version.

https://serverfault.com/questions/896228/how-to-verify-a-file-using-an-asc-signature-file

So, I got a good sha256sum but can't verify the signature. Per the website,
EC8FEF3A7BFB4EDA


I am wondering if PGP is different than GPG and that is the issue. I don't
think that is the issue though.

Please advise. Thnx. for any assistance: Roboloki








Virus-free.
www.avg.com

<#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] [ANNOUNCE] CMake 3.14.0 available for download

2019-03-14 Thread Kyle Edwards via CMake
On Thu, 2019-03-14 at 14:37 -0400, Sean McBride wrote:
> On Thu, 14 Mar 2019 11:58:16 -0400, Robert Maynard via CMake said:
> 
> > 
> > I am happy to announce that CMake 3.14.0 is now available for
> > download at:
> >  https://cmake.org/download/
> Pi version on Pi Day.  Nicely done!  :)  Couldn't you have waited
> until 3:14 to release it?  :)

We thought about releasing it at 1:59, but we didn't want to wait until
the afternoon :)

Kyle
-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] [ANNOUNCE] CMake 3.14.0 available for download

2019-03-14 Thread Sean McBride
On Thu, 14 Mar 2019 11:58:16 -0400, Robert Maynard via CMake said:

>I am happy to announce that CMake 3.14.0 is now available for download at:
>  https://cmake.org/download/

Pi version on Pi Day.  Nicely done!  :)  Couldn't you have waited until 3:14 to 
release it?  :)

Sean


-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio generator running custom_command twice

2019-03-14 Thread frodak17
On Thu, Mar 14, 2019 at 12:53 PM frodak17  wrote:

>
>
> On Thu, Mar 14, 2019 at 1:13 AM Paul Smith  wrote:
>
>> I have a situation where I've created a custom command to generate .cpp
>> files to be compiled (in my case running bison/flex).
>>
>> I'm using CMake 3.13.4
>>
>>   set(MyParserOutput
>>   ${OUT_DIR}/MyParser.tab.cpp
>>   ${OUT_DIR}/MyParser.tab.hpp)
>>
>>   add_custom_target(MyGenParser DEPENDS ${MyParserOutput})
>>
>> Then I have two different libraries, both depending on this:
>>
>>   add_library(OneLib STATIC ${MyParserOutput} ...)
>>   add_dependencies(OneLib MyGenparser)
>>
>>
>>   add_library(TwoLib STATIC ${MyParserOutput} ...)
>>   add_dependencies(TwoLib MyGenparser)
>>
>>
>> From add_custom_command()
> Do not list the output in more than one independent target that may build
> in parallel or the two instances of the rule may conflict (instead use the
> add_custom_target()
> 
> command to drive the command and make the other targets depend on that one)
>
> Removing ${MyParserOutput} from both add_library() should fix the issue.
>
> Best regards,
> F
>

Sorry, It didn't register at first that about the cpp file that needs to
get compiled into the library.

That makes it a little more complicated.

In that case you need to keep ${MyParserOutput} and set the GENERATED
properties for the files.

Also the building the custom target needs to be done in a separate
directory as the add_custom_commands() need to be in a different
CMakeLists.txt file from the libraries.  Otherwise the rules get pulled
into the libraries and cause the commands to be run multiple times.
-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


Re: [CMake] Visual Studio generator running custom_command twice

2019-03-14 Thread frodak17
On Thu, Mar 14, 2019 at 1:13 AM Paul Smith  wrote:

> I have a situation where I've created a custom command to generate .cpp
> files to be compiled (in my case running bison/flex).
>
> I'm using CMake 3.13.4
>
>   set(MyParserOutput
>   ${OUT_DIR}/MyParser.tab.cpp
>   ${OUT_DIR}/MyParser.tab.hpp)
>
>   add_custom_target(MyGenParser DEPENDS ${MyParserOutput})
>
> Then I have two different libraries, both depending on this:
>
>   add_library(OneLib STATIC ${MyParserOutput} ...)
>   add_dependencies(OneLib MyGenparser)
>
>
>   add_library(TwoLib STATIC ${MyParserOutput} ...)
>   add_dependencies(TwoLib MyGenparser)
>
>
> From add_custom_command()
Do not list the output in more than one independent target that may build
in parallel or the two instances of the rule may conflict (instead use the
add_custom_target()

command to drive the command and make the other targets depend on that one)

Removing ${MyParserOutput} from both add_library() should fix the issue.

Best regards,
F
-- 

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 the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
https://cmake.org/mailman/listinfo/cmake


[CMake] [ANNOUNCE] CMake 3.14.0 available for download

2019-03-14 Thread Robert Maynard via CMake
I am happy to announce that CMake 3.14.0 is now available for download at:
  https://cmake.org/download/

Documentation is available at:
  https://cmake.org/cmake/help/v3.14

Release notes appear below and are also published at
  https://cmake.org/cmake/help/v3.14/release/3.14.html

Some of the more significant changes in CMake 3.14 are:

* Support for running CMake on Windows XP and Windows Vista has been
  dropped. The precompiled Windows binaries provided on "cmake.org"
  now require Windows 7 or higher.

* CMake now supports Cross Compiling for iOS, tvOS, or watchOS using
  simple toolchain files.

* The "Visual Studio 16 2019" generator was added.  This is
  experimental and based on "Visual Studio 2019 Preview 4" because
  this version of VS has not been released.

  The VS 2019 generator differs from generators for earlier versions
  in that it does not provide variants that specify the target
  platform in the generator name.  Instead "CMAKE_GENERATOR_PLATFORM"
  must be used, e.g. through the "-A" command-line option.
  Furthermore, the default target platform (architecture) is now based
  on the *host* platform.  The VS host toolset selection is now based
  on the host architecture as well.

* The "Green Hills MULTI" generator has been updated to include Object
  Library support, support for target renaming and destination output
  control properties, and other improvements.

* A "CMAKE_BUILD_RPATH_USE_ORIGIN" variable and corresponding
  "BUILD_RPATH_USE_ORIGIN" target property were added to enable use of
  relative runtime paths (RPATHs). This helps achieving relocatable
  and reproducible builds that are invariant of the build directory.

* The "install(TARGETS)" command learned how to install to an
  appropriate default directory for a given target type, based on
  variables from the "GNUInstallDirs" module and built-in defaults, in
  lieu of a "DESTINATION" argument.

* The "install(FILES)" and "install(DIRECTORY)" commands learned a
  new set of parameters for installing files as a file type, setting
  the destination based on the appropriate variables from
  "GNUInstallDirs" and built-in defaults, in lieu of a "DESTINATION"
  argument.

* The "install(CODE)" and "install(SCRIPT)" commands learned to
  support generator expressions.  See policy "CMP0087".

* The "if()" command gained support for checking if cache variables
  are defined with the  "DEFINED CACHE{VAR}" syntax.

* A file-based api for clients to get semantic buildsystem
  information has been added.  See the "cmake-file-api(7)" manual.
  This is intended to replace the "cmake-server(7)" mode for IDEs.

* The "cmake(1)" Build Tool Mode ("cmake --build") gained "--
  verbose" and "-v" options to specify verbose build output. Some
  generators such as Xcode don't support this option currently.

* The "cmake(1)" "-E compare_files" command learned a new "--ignore-
  eol" option to specify that end-of-line differences (e.g. LF vs
  CRLF) should be ignored when comparing files.


CMake 3.14 Release Notes


Changes made since CMake 3.13 include the following.


New Features



Generators
--

* The "Visual Studio 16 2019" generator was added.  This is
  experimental and based on "Visual Studio 2019 Preview 4" because
  this version of VS has not been released.

  The VS 2019 generator differs from generators for earlier versions
  in that it does not provide variants that specify the target
  platform in the generator name.  Instead "CMAKE_GENERATOR_PLATFORM"
  must be used, e.g. through the "-A" command-line option.
  Furthermore, the default target platform (architecture) is now based
  on the *host* platform.  The VS host toolset selection is now based
  on the host architecture as well.

* The "Green Hills MULTI" generator has been updated:

  * Now supports Object Libraries.

  * Now warns on unsupported project types such as shared libraries.

  * Now generates a top-level ".top.gpj" for each
directory calling the "project()" command.  The top-level project
file "default.gpj" is no longer created.

  * Now honors target renaming and destination output control
properties such as "RUNTIME_OUTPUT_DIRECTORY" and "OUTPUT_NAME".
This also fixes support for installation rules generated by
"install()".

  * Now honors source file properties "INCLUDE_DIRECTORIES",
"COMPILE_DEFINITIONS", and "COMPILE_OPTIONS".

  * Now supports Dynamic Download Integrity Applications which did
not include Integrate Files via "GHS_INTEGRITY_APP" and setting a
target link flag of "-dynamic".

  * The contents of project files now sorts sources groups and files
by name. Set the "GHS_NO_SOURCE_GROUP_FILE" target property to
"ON" to generate a single project file for the target instead of a
project file for each source group.  Set the
"CMAKE_GHS_NO_SOURCE_GROUP_FILE" variable to enable this for all
targets.


File-Based API
--

* A file-based api for clie