[CMake] CMakeLists.txt : Link options not working properly

2019-12-06 Thread samyuktar
Hello, I am using the TI-CGT compiler and have been successful in getting all my source files to compile. However, I am unable to get the link command to successfully link, and I have crafted a manual link command which I have to then manually enter into the terminal once the build compiles all

Re: [CMake] CMakeLists.txt in different place than source

2018-06-13 Thread J Decker
On Wed, Jun 13, 2018 at 9:46 PM Andrew White wrote: > J Decker wrote: > > You can define a variable to define the base of the sources > > set( SOURCE_ROOT /some/path ) > > > > could be set relative to the current cmake path per cmake that uses those > > souces... and then just prefix it > >

Re: [CMake] CMakeLists.txt in different place than source

2018-06-13 Thread Andrew White
J Decker wrote: You can define a variable to define the base of the sources set( SOURCE_ROOT /some/path ) could be set relative to the current cmake path per cmake that uses those souces... and then just prefix it add_library(my_lib ${SOURCE_ROOT}/src/a.c

Re: [CMake] CMakeLists.txt in different place than source

2018-06-13 Thread J Decker
On Tue, Jun 12, 2018 at 7:22 PM Andrew White wrote: > I have a situation where I want my CMakeLists.txt in a different place > than my source. > > e.g.: > > /some/path/project/CMakeLists.txt > /other/path/source/src/a.c > /other/path/source/include/a.h > > Is there an easy way to say "process

[CMake] CMakeLists.txt in different place than source

2018-06-12 Thread Andrew White
I have a situation where I want my CMakeLists.txt in a different place than my source. e.g.: /some/path/project/CMakeLists.txt /other/path/source/src/a.c /other/path/source/include/a.h Is there an easy way to say "process this CMakeLists.txt as if it were in /other/path/source" (at least as

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 14:31, Alain Miniussi wrote: On 13/09/2017 12:49, Nils Gladitz wrote: [...] Do you have a minimal reproducible example for that behaviour? e.g. given: cmake_minimum_required(VERSION 2.8.0) project(Foo NONE) file(WRITE foo/CMakeLists.txt "add_executable()")

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Alain Miniussi
On 13/09/2017 12:49, Nils Gladitz wrote: [...] Do you have a minimal reproducible example for that behaviour? e.g. given: cmake_minimum_required(VERSION 2.8.0) project(Foo NONE) file(WRITE foo/CMakeLists.txt "add_executable()") add_subdirectory(foo) I get: CMake

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Mateusz Loskot
On 13 September 2017 at 12:49, Nils Gladitz wrote: > On 13.09.2017 12:22, Alain Miniussi wrote: >> On 13/09/2017 11:16, Nils Gladitz wrote: >>> On 13.09.2017 10:52, Alain Miniussi wrote: Is there a way, when printing CMake error, to get the exact location of

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 12:22, Alain Miniussi wrote: On 13/09/2017 11:16, Nils Gladitz wrote: On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Alain Miniussi
On 13/09/2017 11:16, Nils Gladitz wrote: On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan

Re: [CMake] CMakeLists.txt location

2017-09-13 Thread Nils Gladitz
On 13.09.2017 10:52, Alain Miniussi wrote: Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan all my CMakeLists.txt (~200) to check which

[CMake] CMakeLists.txt location

2017-09-13 Thread Alain Miniussi
Hi, Is there a way, when printing CMake error, to get the exact location of the CMakeLists.txt ? For example, right now, when I have: CMake Error at CMakeLists.txt:14 (add_executable): I need to scan all my CMakeLists.txt (~200) to check which one has add_executable at line 14. Thanks

Re: [CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-19 Thread Muhammad Osama
ot;Test ${CTEST_BUILD_NAME} failed.") # sets return > value to -1 > > endif(configure_failed OR build_failed OR test_failed) > > > > Best regards, > > Miroslav > > > > *From:* Muhammad Osama [mailto:osam...@gmail.com] > *Sent:* Monday, April 18, 2016 8:33

Re: [CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-19 Thread Matějů Miroslav , Ing .
{CTEST_BUILD_NAME} failed.") # sets return value to -1 endif(configure_failed OR build_failed OR test_failed) Best regards, Miroslav From: Muhammad Osama [mailto:osam...@gmail.com] Sent: Monday, April 18, 2016 8:33 PM To: Matějů Miroslav, Ing. Cc: cmake@cmake.org Subject: Re: [CMake] CMakeLis

Re: [CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-18 Thread Muhammad Osama
iled) > > message(FATAL_ERROR "Test ${CTEST_BUILD_NAME} failed.") > > endif() > > > > Best regards, > > Miroslav > > > > *From:* CMake [mailto:cmake-boun...@cmake.org] *On Behalf Of *Muhammad > Osama > *Sent:* Friday, April 15, 2016 8:53 PM &

Re: [CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-18 Thread Matějů Miroslav , Ing .
, Miroslav From: CMake [mailto:cmake-boun...@cmake.org] On Behalf Of Muhammad Osama Sent: Friday, April 15, 2016 8:53 PM To: cmake@cmake.org Subject: [CMake] CMakeLists.txt: How to print a message if ctest fails? Is there a way I can setup CMakeLists.txt to print a message if ctest tests fail? F

[CMake] CMakeLists.txt: How to print a message if ctest fails?

2016-04-15 Thread Muhammad Osama
Is there a way I can setup CMakeLists.txt to print a message if ctest tests fail? For example: cmake .. make ctest // fails message output: Please contact x...@mail.com to resolve testing problems. ​Note the message output is not for cmake but for ctest.​ --​​ Muhammad -- Powered by

[CMake] Reverse engineering a cmake CMakeLists.txt script.

2013-08-31 Thread outro pessoa
In order to fix something, I need to know how to undo it first. An answer of, Gee, we don't know how to undo what was done and we never thought it may be necessary would suffice if the system was made as such. -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ

[CMake] CMakeLists.txt options.

2012-10-28 Thread Brad Bell
The CMakeLists.txt command option( option_variable help string describing option [initial value] ) Provides an option for the user to select as ON or OFF; i.e., a BOOL. How does one provide an option for the user to select that is a PATH ? -- Powered by www.kitware.com Visit other

Re: [CMake] CMakeLists.txt options.

2012-10-28 Thread Alexander Neundorf
On Sunday 28 October 2012, Brad Bell wrote: The CMakeLists.txt command option( option_variable help string describing option [initial value] ) Provides an option for the user to select as ON or OFF; i.e., a BOOL. How does one provide an option for the user to select that is a PATH ?

[CMake] cmakelists.txt

2012-06-24 Thread Heena Mahur
 Hey,I need to that what should i do in cmakelists.txt http://pastebin.com/raw.php?i=BGV9NAmQ since i am getting this error  (target_link_libraries):   Cannot specify link libraries for target ptedit_1 which is not built by   this project. Please suggest the errors and the suggested commands

Re: [CMake] cmakelists.txt

2012-06-24 Thread John Drescher
On Sun, Jun 24, 2012 at 5:57 AM, Heena Mahur hen...@rocketmail.com wrote:  Hey,I need to that what should i do in cmakelists.txt http://pastebin.com/raw.php?i=BGV9NAmQ since i am getting this error  (target_link_libraries):   Cannot specify link libraries for target ptedit_1 which is not built

Re: [CMake] CMakeLists.txt?

2009-06-28 Thread Bill Hoffman
Robert Dailey wrote: Just curious about how you guys came up with the name 'CMakeLists.txt'. While I've grown to accept it, I still can't say I really understand the meaning of the name. Something that would make sense to me is CMakeScript.txt or CMakeFile. I am especially curious as to why

[CMake] CMakeLists.txt?

2009-06-27 Thread Robert Dailey
Just curious about how you guys came up with the name 'CMakeLists.txt'. While I've grown to accept it, I still can't say I really understand the meaning of the name. Something that would make sense to me is CMakeScript.txt or CMakeFile. I am especially curious as to why you guys use an extension.

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-25 Thread Boudewijn Rempt
On Saturday 25 April 2009, Pau Garcia i Quiles wrote: On Fri, Apr 24, 2009 at 7:13 PM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: Has anyone by any chance already done a CMakeLists.txt file for GraphicsMagick or

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-25 Thread Boudewijn Rempt
On Saturday 25 April 2009, Philip Lowman wrote: If someone ends up doing this please consider submitting the work to CMakePorts. http://code.google.com/p/cmakeports If nobody has done it before I'll probably have to do it, but it won't be totally production quality. GraphicsMagick is a

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Miguel A. Figueroa-Villanueva
On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: Has anyone by any chance already done a CMakeLists.txt file for GraphicsMagick or ImageMagick? I'd like to integrate either in the build of our application, instead of relying on installed packages, but I'd hate to do duplicate work...

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Pau Garcia i Quiles
On Fri, Apr 24, 2009 at 7:13 PM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: Has anyone by any chance already done a CMakeLists.txt file for GraphicsMagick or ImageMagick? I'd like to integrate either in the build of our

Re: [CMake] cmakelists.txt for GraphicsMagick or ImageMagick

2009-04-24 Thread Philip Lowman
On Fri, Apr 24, 2009 at 8:01 PM, Pau Garcia i Quiles pgqui...@elpauer.orgwrote: On Fri, Apr 24, 2009 at 7:13 PM, Miguel A. Figueroa-Villanueva migu...@ieee.org wrote: On Fri, Apr 24, 2009 at 6:14 AM, Boudewijn Rempt wrote: Has anyone by any chance already done a CMakeLists.txt file for

[CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Richard Fuchs
Im setting up the build environment for our project and Ive been looking around to find some examples of how to create CMakelists.txt files and the only examples Ive come across so far are the trivial ones on the cmake page and the crazy convoluted ones (well, from my novice perspective)

Re: [CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Scott Amort
Hi Richard, Richard Fuchs wrote: Are there any other places that I can look to find some examples while I wait for my cmake book to arrive in the mail? Any pointers would be useful. Thanks I found the latest Scribus (http://www.scribus.net) CVS source to be quite helpful as an example

Re: [CMake] CMakelists.txt non-trivial examples?

2006-07-24 Thread Brandon J. Van Every
Richard Fuchs wrote: Im setting up the build environment for our project and Ive been looking around to find some examples of how to create CMakelists.txt files and the only examples Ive come across so far are the trivial ones on the cmake page and the crazy convoluted ones (well,