[Cmake-commits] CMake branch, master, updated. v3.9.0-rc5-227-g17115f0

2017-07-06 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  17115f0a5b594e76d6e3fa2df1361224e57ddf0f (commit)
  from  ecadc1495b9c2e5ff5bbf265cb232f3acf1c2800 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=17115f0a5b594e76d6e3fa2df1361224e57ddf0f
commit 17115f0a5b594e76d6e3fa2df1361224e57ddf0f
Author: Kitware Robot <kwro...@kitware.com>
AuthorDate: Fri Jul 7 00:01:07 2017 -0400
Commit: Kitware Robot <kwro...@kitware.com>
CommitDate: Fri Jul 7 00:01:07 2017 -0400

CMake Nightly Date Stamp

diff --git a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index 14c604f..7495ba5 100644
--- a/Source/CMakeVersion.cmake
+++ b/Source/CMakeVersion.cmake
@@ -1,5 +1,5 @@
 # CMake version number components.
 set(CMake_VERSION_MAJOR 3)
 set(CMake_VERSION_MINOR 9)
-set(CMake_VERSION_PATCH 20170706)
+set(CMake_VERSION_PATCH 20170707)
 #set(CMake_VERSION_RC 1)

---

Summary of changes:
 Source/CMakeVersion.cmake |2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Sean Wayland
Hi Micha,
Thanks very much for the email. That seemed to make a small
difference! With both those lines commented out these errors are
generated ( below my email ) .
I still have included
project(CATSMAT)
at the top line of the cmake file in the catsmat directory

I tried commenting out each of those language type definitions
separately but it didn't seem to help.
The code compiles under xcode. Those language types ( C++14) are
specified in Xcode so I was trying to find a way to copy what is in
xcode.

Is there a maximum number of "errors" before the clion compiler will
spit the dummy ?

Another executable will compile with lots and lots of warnings but no "errors"

I don't know much about C++ unfortunately. These errors look like
simple errors which I could see might be generated if the syntax of
the language had changed slightly from one version to the next ..

Thanks for you help!

Sean


/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:14:
error: ISO C++ forbids forward references to 'enum' types

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };


/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:30:
error: expected '(' for function-style cast or type construction

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };

 ~~~ ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:24:
error: field has incomplete type 'enum direction'

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };


/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:14:
error: ISO C++ forbids forward references to 'enum' types

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };

 ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:30:
error: expected '(' for function-style cast or type construction

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };

 ~~~ ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:24:
error: field has incomplete type 'enum direction'

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };

   ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:78:14:
note: forward declaration of 'IMUSANT::direction'

enum direction : int { descending=-1, repeat=0, ascending = 1,
vertical_bottomtotop };

 ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:80:14:
error: ISO C++ forbids forward references to 'enum' types

enum basic : int { unison = 0, second=1, third, fourth, fifth,
sixth, seventh };

 ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:80:26:
error: expected '(' for function-style cast or type construction

enum basic : int { unison = 0, second=1, third, fourth, fifth,
sixth, seventh };

 ~~~ ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:80:20:
error: field has incomplete type 'enum basic'

enum basic : int { unison = 0, second=1, third, fourth, fifth,
sixth, seventh };


sers/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:80:14:
error: ISO C++ forbids forward references to 'enum' types

enum basic : int { unison = 0, second=1, third, fourth, fifth,
sixth, seventh };

 ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:80:26:
error: expected '(' for function-style cast or type construction

enum basic : int { unison = 0, second=1, third, fourth, fifth,
sixth, seventh };

 ~~~ ^

/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/DomainObjects/inc/IMUSANT_interval.h:80:20:
error: field has incomplete type 'enum basic'

enum basic : int { unison = 0, second=1, third, fourth, fifth,
sixth, seventh };




/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat/cmake/../../libIMUSANT/FileProcessing/inc/IMUSANT_processing.h:61:35:
error: expected ';' at end of declaration list

const char * what () const noexcept

  ^

   ^



22 warnings 

Re: [CMake] Parallel moc for Qt files

2017-07-06 Thread Cristian Adam
On Thu, Jul 6, 2017 at 10:00 PM, Michael Jackson <
mike.jack...@bluequartz.net> wrote:

> I have a large list of files that need to have Qt's 'moc' run on them (107
> headers). I use all the normal CMake facilities for Qt based projects. I
> noticed that the generation of the moc files are done serially. Is there a
> flag or anything that I can use to run the generation in Parallel? I ask
> because each file takes about 3 seconds to run through moc. The code is
> heavily C++ templated which I think causes 'moc' to run more slowly. We
> have other places in the code where 'moc' must run and it does each file in
> the "blink of an eye".
>
> Just curious.
>
>
Have you tried removing moc altogether using Verdigris
? I'm curious how
this would speed up your compilation time.

Cheers,
Cristian.
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

[CMake] Parallel moc for Qt files

2017-07-06 Thread Michael Jackson
I have a large list of files that need to have Qt's 'moc' run on them 
(107 headers). I use all the normal CMake facilities for Qt based 
projects. I noticed that the generation of the moc files are done 
serially. Is there a flag or anything that I can use to run the 
generation in Parallel? I ask because each file takes about 3 seconds to 
run through moc. The code is heavily C++ templated which I think causes 
'moc' to run more slowly. We have other places in the code where 'moc' 
must run and it does each file in the "blink of an eye".


Just curious.

--
Michael A. Jackson
BlueQuartz Software, LLC
[e]: mike.jack...@bluequartz.net
--

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:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Micha Hergarden
On 06-07-17 15:59, Sean Wayland wrote:
> Hi Micha,
> Thanks very much I tried that .. I added it to the application
> directory cmakelists.txt file . Same issue .. It's already in the top
> level cmake file which looks like this ..
>
> project(CATSMAT)
> cmake_minimum_required(VERSION 3.6.3)
>
>
> if (APPLE)
>
> set(CMAKE_C++_FLAGS -mmacosx-version-min=10.4)
> endif (APPLE)
>
>
> include_directories("catsmat/libIMUSANT")
>
> add_subdirectory (catsmat/googletest-master/googletest)
> add_subdirectory (catsmat/libMusicXMLv3/libmusicxml-3.00-src/cmake)
> add_subdirectory (catsmat/libIMUSANT/cmake)
> add_subdirectory (catsmat/libIMUSANT_Tests/cmake)
> add_subdirectory (catsmat/catsmat/cmake)
>
> set(CMAKE_CXX_STANDARD 14)
>
> On Thu, Jul 6, 2017 at 2:48 AM, Micha Hergarden
>  wrote:
>> On 05-07-17 22:50, Sean Wayland wrote:
>>> I am attempting to write a cmakelists.txt file for an application.
>>> The application has a couple of dependencies.
>>> I have been able to build targets for the dependencies but when I try
>>> and add an executable for the main application I encounter this error.
>>>
>>> Undefined symbols for architecture x86_64:
>>>
>>>   "_main", referenced from:
>>>
>>>  implicit entry/start for main executable
>>>
>>> ld: symbol(s) not found for architecture x86_64
>>>
>>> clang: error: linker command failed with exit code 1 (use -v to see 
>>> invocation)
>>>
>>>
>>> Googling the error and looking on stack exchange suggests that I don't
>>> have a main function in the implicit entry/start .
>>>
>>> Where does it look for this function ?
>>> Does that file need to be first in the list of sources ?
>>>
>>>
>>>
>>> This function is included here :
>>> ${CATSMAT_DIR}/Application/CATSMAT_main.cpp
>>>
>>> My cmake file is below.
>>>
>>> Any advice would be appreciated I have been stuck here for a while!
>>>
>>> Best Sean
>>>
>>>
>>> ###
>>> # CMAKE CATSTMAT
>>> ###
>>> cmake_minimum_required(VERSION 3.6.3)
>>> set(CMAKE_CXX_STANDARD 14)
>>> if(CMAKE_CONFIGURATION_TYPES)
>>> set(CMAKE_CONFIGURATION_TYPES Debug Release)
>>> endif()
>>>
>>> if(UNIX)
>>> add_definitions(-Wall -DGCC)
>>> endif(UNIX)
>>>
>>> # RPATH SETTING #
>>> set(CMAKE_MACOSX_RPATH 1)
>>>
>>> #if(APPLE)
>>> # set (CMAKE_OSX_ARCHITECTURES "x86_64 i386")
>>> # if (${CMAKE_SYSTEM_VERSION} VERSION_LESS 9.0.0)
>>> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk)
>>> # elseif (${CMAKE_SYSTEM_VERSION} VERSION_LESS 10.8.0)
>>> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
>>> # elseif (${XCODE_VERSION} VERSION_LESS 4.0.0)
>>> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk)
>>> # else ()
>>> # set (CMAKE_OSX_SYSROOT "macosx10.7")
>>> # endif ()
>>> # set (CMAKE_C++_FLAGS -mmacosx-version-min=10.4)
>>> #endif(APPLE)
>>> #
>>> #if(WIN32)
>>> # add_definitions(-DWINVER=0x0400 -DWIN32)
>>> # if(${CMAKE_GENERATOR} STREQUAL "Visual Studio 6")
>>> #  add_definitions(-DVC6)
>>> # elseif(${CMAKE_GENERATOR} STREQUAL "Visual Studio 8 2005")
>>> #  add_definitions(-DVC2005)
>>> # endif(${CMAKE_GENERATOR} STREQUAL "Visual Studio 6")
>>> #endif(WIN32)
>>>
>>> ###  BOOST LIBRARIES ###
>>> if (APPLE)
>>> set(BOOST_ROOT "/usr/local/boost")
>>> set(BOOST_FILESYSTEM_LIB  /usr/local/boost/lib/libboost_filesystem.dylib)
>>> set(BOOST_SYSTEM_LIB  /usr/local/boost/lib/libboost_system.dylib)
>>>
>>> else (NOT APPLE)
>>> set(BOOST_ROOT "C:/local/boost_1_58_0")
>>> set(BOOST_FILESYSTEM_LIB  C:/local/boost_1_58_0/lib64-msvc-12.0)
>>> set(BOOST_SYSTEM_LIB  C:/local/boost_1_58_0/lib64-msvc-12.0)
>>> endif (APPLE)
>>>
>>> FIND_PACKAGE( Boost 1.58.0 REQUIRED  )
>>> INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
>>>
>>>
>>> ###
>>> # set directories, src and headers.
>>>
>>> set (CATSMAT_DIR
>>> /Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat )
>>> set (libIMUSANT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libIMUSANT)
>>> set (LOKI_DIR   ${CMAKE_CURRENT_SOURCE_DIR}/../../Loki)
>>> set (SUFFIX_TREE_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../SuffixTree)
>>> set (GOOGLE_TEST_INC_DIR
>>> ${CMAKE_CURRENT_SOURCE_DIR}/../../googletest-master/googletest/include)
>>> set (IMUSANT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libIMUSANT)
>>>
>>>
>>> set (LIBMUSICXML_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libMusicXMLv3)
>>>
>>>
>>>  SET SOURCES EXPLICITLY #
>>>
>>> set(SRC
>>>
>>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_contour_suffixtree_builder.cpp
>>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_generalised_interval_suffixtree_builder.cpp
>>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_interval_suffixtree_builder.cpp
>>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_pitch_suffixtree_builder.cpp
>>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_repeated_interval_substring.cpp
>>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_t_repeated_substring.cpp
>>> 

[cmake-developers] add_custom_target(): When is VERBATIM appropriate?

2017-07-06 Thread Robert Dailey
This is a continuation of the discussion I had with Brad here:
https://gitlab.kitware.com/cmake/cmake/merge_requests/1019#note_286609

Hopefully we can continue the discussion here, but I'm happy to hear
from others as well.

It was stated that VERBATIM is not necessarily useful in all cases.
Are these cases documented anywhere? Basically, how would I decide
when to use it and when not? For the MR above, it was suggested that
it be used for paths related to FindDoxygen.cmake, but I'm not sure
why it was recommended other than "Improved escaping behavior".

Thanks in advance for any information to help clarify my confusion.
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers


[Cmake-commits] CMake branch, master, updated. v3.9.0-rc5-226-gecadc14

2017-07-06 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, master has been updated
   via  ecadc1495b9c2e5ff5bbf265cb232f3acf1c2800 (commit)
   via  3572548eb37509db2801e8ae57f7874af3089f46 (commit)
   via  cf9a994d9a53db02d8ddaa2bf3f9da0bc8f6f19b (commit)
   via  251bcbed721c86886b5b51f97f30228e249a0d63 (commit)
  from  8bc93cdd797e6396040bd00eee877734af0d3759 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=ecadc1495b9c2e5ff5bbf265cb232f3acf1c2800
commit ecadc1495b9c2e5ff5bbf265cb232f3acf1c2800
Merge: 3572548 cf9a994
Author: Brad King 
AuthorDate: Thu Jul 6 10:13:51 2017 -0400
Commit: Brad King 
CommitDate: Thu Jul 6 10:13:51 2017 -0400

Merge branch 'release-3.9'


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=3572548eb37509db2801e8ae57f7874af3089f46
commit 3572548eb37509db2801e8ae57f7874af3089f46
Merge: 8bc93cd 251bcbe
Author: Brad King 
AuthorDate: Thu Jul 6 14:13:07 2017 +
Commit: Kitware Robot 
CommitDate: Thu Jul 6 10:13:25 2017 -0400

Merge topic 'autogen_p'

251bcbed Autogen: Continue search for FOO_p.h when FOO.h was found

Acked-by: Kitware Robot 
Merge-request: !1022


---

Summary of changes:
 Source/cmQtAutoGenerators.cxx |1 -
 1 file changed, 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


[Cmake-commits] CMake branch, release, updated. v3.9.0-rc5-17-gcf9a994

2017-07-06 Thread Kitware Robot
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, release has been updated
   via  cf9a994d9a53db02d8ddaa2bf3f9da0bc8f6f19b (commit)
   via  251bcbed721c86886b5b51f97f30228e249a0d63 (commit)
  from  ef31812ede6ca1eafd8723e8478e533deadfc4f0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -
---

Summary of changes:
 Source/cmQtAutoGenerators.cxx |1 -
 1 file changed, 1 deletion(-)


hooks/post-receive
-- 
CMake
___
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits


Re: [CMake] Enhanced version management for the command "project"

2017-07-06 Thread Robert Maynard
Hi,

These kind of conversations are better suited to the CMake Developers
Mailing List. ( https://cmake.org/mailing-lists/ )

On Sat, Jul 1, 2017 at 1:33 PM, SF Markus Elfring
 wrote:
> Hello,
>
> CMake provides an interface for the specification of version information
> by the command "project".
> https://cmake.org/cmake/help/v3.9/command/project.html
>
> Can it be extended a bit more?
>
> 1. How do you think about to preserve a software release tag there?
>
> 2. Software packages can often evolve and deviate from the specified version
>numbers after the moment they were copied to an useful location.
>Would you like to distinguish the extensions to a base version
>by any additional data (like a commit hash or revision identifier)
>from a content management system?
>
> Regards,
> Markus
> --
>
> 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:
> http://public.kitware.com/mailman/listinfo/cmake
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake


Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Sean Wayland
Hi Micha,
Thanks very much I tried that .. I added it to the application
directory cmakelists.txt file . Same issue .. It's already in the top
level cmake file which looks like this ..

project(CATSMAT)
cmake_minimum_required(VERSION 3.6.3)


if (APPLE)

set(CMAKE_C++_FLAGS -mmacosx-version-min=10.4)
endif (APPLE)


include_directories("catsmat/libIMUSANT")

add_subdirectory (catsmat/googletest-master/googletest)
add_subdirectory (catsmat/libMusicXMLv3/libmusicxml-3.00-src/cmake)
add_subdirectory (catsmat/libIMUSANT/cmake)
add_subdirectory (catsmat/libIMUSANT_Tests/cmake)
add_subdirectory (catsmat/catsmat/cmake)

set(CMAKE_CXX_STANDARD 14)

On Thu, Jul 6, 2017 at 2:48 AM, Micha Hergarden
 wrote:
> On 05-07-17 22:50, Sean Wayland wrote:
>> I am attempting to write a cmakelists.txt file for an application.
>> The application has a couple of dependencies.
>> I have been able to build targets for the dependencies but when I try
>> and add an executable for the main application I encounter this error.
>>
>> Undefined symbols for architecture x86_64:
>>
>>   "_main", referenced from:
>>
>>  implicit entry/start for main executable
>>
>> ld: symbol(s) not found for architecture x86_64
>>
>> clang: error: linker command failed with exit code 1 (use -v to see 
>> invocation)
>>
>>
>> Googling the error and looking on stack exchange suggests that I don't
>> have a main function in the implicit entry/start .
>>
>> Where does it look for this function ?
>> Does that file need to be first in the list of sources ?
>>
>>
>>
>> This function is included here :
>> ${CATSMAT_DIR}/Application/CATSMAT_main.cpp
>>
>> My cmake file is below.
>>
>> Any advice would be appreciated I have been stuck here for a while!
>>
>> Best Sean
>>
>>
>> ###
>> # CMAKE CATSTMAT
>> ###
>> cmake_minimum_required(VERSION 3.6.3)
>> set(CMAKE_CXX_STANDARD 14)
>> if(CMAKE_CONFIGURATION_TYPES)
>> set(CMAKE_CONFIGURATION_TYPES Debug Release)
>> endif()
>>
>> if(UNIX)
>> add_definitions(-Wall -DGCC)
>> endif(UNIX)
>>
>> # RPATH SETTING #
>> set(CMAKE_MACOSX_RPATH 1)
>>
>> #if(APPLE)
>> # set (CMAKE_OSX_ARCHITECTURES "x86_64 i386")
>> # if (${CMAKE_SYSTEM_VERSION} VERSION_LESS 9.0.0)
>> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk)
>> # elseif (${CMAKE_SYSTEM_VERSION} VERSION_LESS 10.8.0)
>> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
>> # elseif (${XCODE_VERSION} VERSION_LESS 4.0.0)
>> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk)
>> # else ()
>> # set (CMAKE_OSX_SYSROOT "macosx10.7")
>> # endif ()
>> # set (CMAKE_C++_FLAGS -mmacosx-version-min=10.4)
>> #endif(APPLE)
>> #
>> #if(WIN32)
>> # add_definitions(-DWINVER=0x0400 -DWIN32)
>> # if(${CMAKE_GENERATOR} STREQUAL "Visual Studio 6")
>> #  add_definitions(-DVC6)
>> # elseif(${CMAKE_GENERATOR} STREQUAL "Visual Studio 8 2005")
>> #  add_definitions(-DVC2005)
>> # endif(${CMAKE_GENERATOR} STREQUAL "Visual Studio 6")
>> #endif(WIN32)
>>
>> ###  BOOST LIBRARIES ###
>> if (APPLE)
>> set(BOOST_ROOT "/usr/local/boost")
>> set(BOOST_FILESYSTEM_LIB  /usr/local/boost/lib/libboost_filesystem.dylib)
>> set(BOOST_SYSTEM_LIB  /usr/local/boost/lib/libboost_system.dylib)
>>
>> else (NOT APPLE)
>> set(BOOST_ROOT "C:/local/boost_1_58_0")
>> set(BOOST_FILESYSTEM_LIB  C:/local/boost_1_58_0/lib64-msvc-12.0)
>> set(BOOST_SYSTEM_LIB  C:/local/boost_1_58_0/lib64-msvc-12.0)
>> endif (APPLE)
>>
>> FIND_PACKAGE( Boost 1.58.0 REQUIRED  )
>> INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
>>
>>
>> ###
>> # set directories, src and headers.
>>
>> set (CATSMAT_DIR
>> /Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat )
>> set (libIMUSANT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libIMUSANT)
>> set (LOKI_DIR   ${CMAKE_CURRENT_SOURCE_DIR}/../../Loki)
>> set (SUFFIX_TREE_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../SuffixTree)
>> set (GOOGLE_TEST_INC_DIR
>> ${CMAKE_CURRENT_SOURCE_DIR}/../../googletest-master/googletest/include)
>> set (IMUSANT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libIMUSANT)
>>
>>
>> set (LIBMUSICXML_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libMusicXMLv3)
>>
>>
>>  SET SOURCES EXPLICITLY #
>>
>> set(SRC
>>
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_contour_suffixtree_builder.cpp
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_generalised_interval_suffixtree_builder.cpp
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_interval_suffixtree_builder.cpp
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_pitch_suffixtree_builder.cpp
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_repeated_interval_substring.cpp
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_t_repeated_substring.cpp
>> ${CATSMAT_DIR}/Analysis/src/IMUSANT_VectorMapAnalysisTypes.cpp
>>
>> ${CATSMAT_DIR}/Application/CATSMAT_main.cpp
>> ${CATSMAT_DIR}/Application/CATSMAT_menu.cpp
>>
>> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_chord.cpp
>> 

[CMake] Errors when writing manifest

2017-07-06 Thread Petr Kmoch
Hi all.

I'm on Windows and I'm building my CMake project using MSVC. When I select
Visual Studio as the CMake generator, everything works perfectly. However,
when I use either the NMake or Ninja generator (in a properly configured
command prompt), most of my DLL linking steps fail with the following error:

  C:/Program Files (x86)/Windows Kits/8.1/bin/x64/mt.exe : general error
c101008d: Failed to write the updated manifest to the resource of file
"path\to\the.dll". The operation failed.

Re-running the exact same command (`nmake` or `ninja`) without doing
anything else occasionally solves the problem (it seemed to me it was
solved more often with NMake than with Ninja, but I can't be sure), but now
I've reached a point where all remaining DLLs consistently fail to link due
to the manifest issue.

I'd be happy to try to debug/locate the issue myself, but since the error
message I get is so wonderfully unhelpful, I don't know *how* to look into
it, or even where to start. Would anyone have any ideas how to look what
the issue could be?

My googling came up with two possibilities: a race with an antivirus for
checking the binary file, or write protection on the output directory. I've
verified that the directory in not write-protected, and it's in a location
which is excluded from AV checks. And anyway, if either of these were the
cause, I'd expect the exact same errors when using the Visual Studio IDE to
build, but such errors *never* happen there.

Any ideas?

Petr
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake

[cmake-developers] Keil ARMCC toolchain file seems broken

2017-07-06 Thread yann suisini
Hi,

I'm trying to use the existing armcc toolchain module, but I get a strange
behaviour.
when using it with cmak GUI , at the configure time I get :

The C compiler identification is GNU 4.9.2

The CXX compiler identification is GNU 4.9.2

Check for working C compiler: D:/Dev/Dev-Cpp/MinGW64/bin/gcc.exe

Check for working C compiler: D:/Dev/Dev-Cpp/MinGW64/bin/gcc.exe -- works

Detecting C compiler ABI info

Detecting C compiler ABI info - done

Detecting C compile features

Detecting C compile features - done

Check for working CXX compiler: D:/Dev/Dev-Cpp/MinGW64/bin/c++.exe

Check for working CXX compiler: D:/Dev/Dev-Cpp/MinGW64/bin/c++.exe -- works

Detecting CXX compiler ABI info

Detecting CXX compiler ABI info - done

Detecting CXX compile features

Detecting CXX compile features - done

Configuring done


Which is completely wrong , since Cmake detects and uses MinGW Oo
-- 

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:
http://public.kitware.com/mailman/listinfo/cmake-developers

Re: [CMake] cmake create executable Undefined symbols for architecture x86_64:

2017-07-06 Thread Micha Hergarden
On 05-07-17 22:50, Sean Wayland wrote:
> I am attempting to write a cmakelists.txt file for an application.
> The application has a couple of dependencies.
> I have been able to build targets for the dependencies but when I try
> and add an executable for the main application I encounter this error.
>
> Undefined symbols for architecture x86_64:
>
>   "_main", referenced from:
>
>  implicit entry/start for main executable
>
> ld: symbol(s) not found for architecture x86_64
>
> clang: error: linker command failed with exit code 1 (use -v to see 
> invocation)
>
>
> Googling the error and looking on stack exchange suggests that I don't
> have a main function in the implicit entry/start .
>
> Where does it look for this function ?
> Does that file need to be first in the list of sources ?
>
>
>
> This function is included here :
> ${CATSMAT_DIR}/Application/CATSMAT_main.cpp
>
> My cmake file is below.
>
> Any advice would be appreciated I have been stuck here for a while!
>
> Best Sean
>
>
> ###
> # CMAKE CATSTMAT
> ###
> cmake_minimum_required(VERSION 3.6.3)
> set(CMAKE_CXX_STANDARD 14)
> if(CMAKE_CONFIGURATION_TYPES)
> set(CMAKE_CONFIGURATION_TYPES Debug Release)
> endif()
>
> if(UNIX)
> add_definitions(-Wall -DGCC)
> endif(UNIX)
>
> # RPATH SETTING #
> set(CMAKE_MACOSX_RPATH 1)
>
> #if(APPLE)
> # set (CMAKE_OSX_ARCHITECTURES "x86_64 i386")
> # if (${CMAKE_SYSTEM_VERSION} VERSION_LESS 9.0.0)
> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.4u.sdk)
> # elseif (${CMAKE_SYSTEM_VERSION} VERSION_LESS 10.8.0)
> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.5.sdk)
> # elseif (${XCODE_VERSION} VERSION_LESS 4.0.0)
> # set (CMAKE_OSX_SYSROOT /Developer/SDKs/MacOSX10.6.sdk)
> # else ()
> # set (CMAKE_OSX_SYSROOT "macosx10.7")
> # endif ()
> # set (CMAKE_C++_FLAGS -mmacosx-version-min=10.4)
> #endif(APPLE)
> #
> #if(WIN32)
> # add_definitions(-DWINVER=0x0400 -DWIN32)
> # if(${CMAKE_GENERATOR} STREQUAL "Visual Studio 6")
> #  add_definitions(-DVC6)
> # elseif(${CMAKE_GENERATOR} STREQUAL "Visual Studio 8 2005")
> #  add_definitions(-DVC2005)
> # endif(${CMAKE_GENERATOR} STREQUAL "Visual Studio 6")
> #endif(WIN32)
>
> ###  BOOST LIBRARIES ###
> if (APPLE)
> set(BOOST_ROOT "/usr/local/boost")
> set(BOOST_FILESYSTEM_LIB  /usr/local/boost/lib/libboost_filesystem.dylib)
> set(BOOST_SYSTEM_LIB  /usr/local/boost/lib/libboost_system.dylib)
>
> else (NOT APPLE)
> set(BOOST_ROOT "C:/local/boost_1_58_0")
> set(BOOST_FILESYSTEM_LIB  C:/local/boost_1_58_0/lib64-msvc-12.0)
> set(BOOST_SYSTEM_LIB  C:/local/boost_1_58_0/lib64-msvc-12.0)
> endif (APPLE)
>
> FIND_PACKAGE( Boost 1.58.0 REQUIRED  )
> INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} )
>
>
> ###
> # set directories, src and headers.
>
> set (CATSMAT_DIR/Users/seanwayland/Desktop/CATSMAT-master/catsmat/catsmat 
> )
> set (libIMUSANT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libIMUSANT)
> set (LOKI_DIR   ${CMAKE_CURRENT_SOURCE_DIR}/../../Loki)
> set (SUFFIX_TREE_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../SuffixTree)
> set (GOOGLE_TEST_INC_DIR
> ${CMAKE_CURRENT_SOURCE_DIR}/../../googletest-master/googletest/include)
> set (IMUSANT_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libIMUSANT)
>
>
> set (LIBMUSICXML_DIR${CMAKE_CURRENT_SOURCE_DIR}/../../libMusicXMLv3)
>
>
>  SET SOURCES EXPLICITLY #
>
> set(SRC
>
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_contour_suffixtree_builder.cpp
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_generalised_interval_suffixtree_builder.cpp
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_interval_suffixtree_builder.cpp
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_pitch_suffixtree_builder.cpp
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_repeated_interval_substring.cpp
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_t_repeated_substring.cpp
> ${CATSMAT_DIR}/Analysis/src/IMUSANT_VectorMapAnalysisTypes.cpp
>
> ${CATSMAT_DIR}/Application/CATSMAT_main.cpp
> ${CATSMAT_DIR}/Application/CATSMAT_menu.cpp
>
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_chord.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_collectionvisitor.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_cp_matrix.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_dyad_sequences.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_dyadtuple_sequences.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_sonority_sequences.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_TrigramSequences.cpp
> ${CATSMAT_DIR}/CounterpointAnalysis/src/CATSMAT_TrigramSuffixTreeBuilder.cpp
>
> ${CATSMAT_DIR}/GeneralAnalysis/src/CATSMAT_canonic_techniques_tools.cpp
> ${CATSMAT_DIR}/GeneralAnalysis/src/CATSMAT_partdata.cpp
> ${CATSMAT_DIR}/GeneralAnalysis/src/CATSMAT_processing.cpp
> ${CATSMAT_DIR}/GeneralAnalysis/src/CATSMAT_score_profile.tpp
> ${CATSMAT_DIR}/GeneralAnalysis/src/CATSMAT_score_splitter.cpp
>