Re: [CMake] target_include_directories and system headers

2018-06-28 Thread Jim Lloyd
Thank you Nils, that is exactly the information I needed. Simply setting `set(CMAKE_NO_SYSTEM_FROM_IMPORTED ON)` achieves the workaround I wanted. On Wed, Jun 27, 2018 at 11:03 PM, Nils Gladitz wrote: > On Thu, Jun 28, 2018 at 7:12 AM Jim Lloyd wrote: > >> [...] >> But i

[CMake] target_include_directories and system headers

2018-06-27 Thread Jim Lloyd
s. Thanks, Jim Lloyd EtaGen Inc. -- 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:

[CMake] CTest verbose output of failed tests

2016-10-20 Thread Lloyd
ose option in visual studio so that I can know the details about the failed tests? That is, how can I know the details about the failed tests from Visual Studio? Thanks, Lloyd -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

[CMake] Visual C++ for Linux

2016-03-30 Thread Lloyd
Hi, Microsoft announced Visual C++ for Linux. Would CMake support this? https://blogs.msdn.microsoft.com/vcblog/2016/03/30/visual-c-for-linux-development/ Thanks, Lloyd -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

[CMake] Check if a variable contains valid number

2016-03-29 Thread Lloyd
EX MATCH "^[1-9][0-9]*$" MY_NUMBER ${MY_NUMBER}) if(MY_NUMBER) #This area is not getting executed, whats wrong here endif() Thanks, Lloyd -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware offe

[CMake] CPack Uninstalling locked files

2015-12-08 Thread Lloyd
s NSIS has a "REBOOTOK" flag in the delete command. When the system is reboot these locked files will be deleted. eg. Delete /REBOOTOK "$INSTDIR\uninst.exe" Does CMake/CPack provide any mechanism for deleting locked files ? Thanks, Lloyd -- Powered by www.kitware.com

Re: [CMake] generator expression for set_target_properties

2015-12-03 Thread Lloyd
I mean the latter, changing the build type in ide On Thu, Dec 3, 2015 at 1:15 PM, Attila Krasznahorkay < attila.krasznahor...@gmail.com> wrote: > Hi Lloyd, > > You mean like: > > if( ${CMAKE_BUILD_TYPE} STREQUAL "Release" ) >set_target_properties( myexe

[CMake] generator expression for set_target_properties

2015-12-02 Thread Lloyd
cmake 2.8, Windows 7, VS 2013 Thanks, Lloyd -- 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

[CMake] CPack-NSIS Start menu item not created

2015-12-02 Thread Lloyd
shortcut. What could be the reason? I am using NSIS. I have a custom NSIS template. Is this the reason for it not to work? Thanks, Lloyd -- 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

[CMake] Qt5, find ICU and ANGLE libraries

2015-02-10 Thread Lloyd
holding this value? I could find Qt5_DIR, but not a variable pointing to the bin directory. Thanks, Lloyd -- 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

Re: [CMake] Cmake project

2014-12-15 Thread Lloyd
You can write the root cmake file in the samples directory then adding project specific cmake file in the src directory. You can also start by writing a single cmake file in the src directory alone. Then move it to the samples directory, if the project complexity increases On Tue, Dec 16, 2014

[CMake] Run custom command only when dependency changes

2014-04-01 Thread Lloyd
each time (even if the .mc file is not changed), and in effect recompiling a major portion of my project. May I know what am I doing wrong here? Thanks, Lloyd -- Powered by www.kitware.com Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Kitware

Re: [CMake] Run custom command only when dependency changes

2014-04-01 Thread Lloyd
On Tue, Apr 1, 2014 at 12:55 PM, Nils Gladitz nilsglad...@gmail.com wrote: SET (MY_SRC Event_log.h other.cpp other1.cpp) ADD_EXECUTABLE(MyExe ${MY_SRC } add_custom_command(OUTPUT Event_log.h COMMAND mc Event_log.mc WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} DEPENDS Event_log.mc)

[CMake] custom nsis template- Install targets not working

2014-03-27 Thread Lloyd
the standard nsis template is processed, these lines are changed to File /r ${INST_DIR}\*.* I am struck at this point, how can I make my install targets command work? Any hint or documentation would be greatly appreciated. Thanks, Lloyd -- Powered by www.kitware.com Please keep messages on-topic

Re: [CMake] custom nsis template- Install targets not working

2014-03-27 Thread Lloyd
I am no NSIS expert so I can't imagine why 'File /r ${INST_DIR}\*.*' could possibly do ??? About the file command the NSIS documentation says this: Adds file(s) to be extracted to the current output path ($OUTDIR). If the /r switch is used, files and directories are added

Re: [CMake] custom nsis template- Install targets not working

2014-03-27 Thread Lloyd
@CPACK_TEMPORARY_DIRECTORY@ Thanks a lot, Lloyd On Thu, Mar 27, 2014 at 2:05 PM, Lloyd lloydkl.t...@gmail.com wrote: I am no NSIS expert so I can't imagine why 'File /r ${INST_DIR}\*.*' could possibly do ??? About the file command the NSIS documentation says this: Adds file(s

Re: [CMake] CPack error in visual studio 2010

2014-03-26 Thread Lloyd
The problem disappeared now. I suspect some application (may be the antivirus or a virus) was keeping that file (C:/Users/user1/Desktop/xyz/abc-1.0.0-win32.exe) open. On Tue, Mar 25, 2014 at 3:33 PM, Lloyd lloydkl.t...@gmail.com wrote: Hi, I am using CPack (CMake) with Visual Studio 2010

[CMake] CPack error in visual studio 2010

2014-03-25 Thread Lloyd
, Lloyd -- 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

[CMake] CPack+ NSIS Template modificaiton

2014-03-20 Thread Lloyd
complicated (from our point of application) and also we want more functionality. Thanks a lot, Lloyd -- 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

Re: [CMake] Linking with boost

2014-03-18 Thread Lloyd
Thanks David, now it works, seems to be cache issue On Fri, Mar 14, 2014 at 4:46 PM, David Cole dlrd...@aol.com wrote: If you start with a clean directory in each case, do you get the same results? (i.e. -- is the result of the first run cached, and re-used despite your change of variable

[CMake] Linking with boost

2014-03-13 Thread Lloyd
, the output to be boost_filesystem-vc100-mt-1_53.lib. Is anything going wrong here? Can anybody clarify this? Thanks, Lloyd -- 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

[CMake] Target Link Library

2014-03-12 Thread Lloyd
). But this code makes my cmake file platform dependent, that is on windows I need to use the MyLib.lib in CMake and on Linux I need to use MyLib.a ! Is there a better alternative? (I went through the doc of find_library(), but it doesn't seem to be suitable in this scenatio) Thanks, Lloyd -- Powered

Re: [CMake] Target Link Library

2014-03-12 Thread Lloyd
Thank you very much for the simple and clean solution. Thanks, Lloyd On Wed, Mar 12, 2014 at 3:20 PM, Nils Gladitz nilsglad...@gmail.com wrote: On 12.03.2014 10:41, Nils Gladitz wrote: If you created the target with add_library(mylibrary ...) target_link_library(MyExe mylibrary) should

Re: [CMake] custom NSIS installer

2013-05-07 Thread Lloyd
to thank you all for the valuable information. Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow

[CMake] custom NSIS installer

2013-05-06 Thread Lloyd
. could you please let me know the correct location where I should create the template file? Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http

[CMake] cpack error in visual studio

2013-05-02 Thread Lloyd
(GENERATE_PACKAGE) One of the install command present in my cmake file is also given below INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/bin/Debug/Tutorial.exe DESTINATION ${CPACK_PACKAGE_INSTALL_DIRECTORY} CONFIGURATIONS Debug) Any guidance is much appreciated. Thanks, Lloyd -- Powered by www.kitware.com

Re: [CMake] default CONFIGURATIONS in cygwin

2013-05-02 Thread Lloyd
RelWithDebInfo) endif() On Thu, May 2, 2013 at 9:04 PM, Stephen Kelly steve...@gmail.com wrote: Lloyd wrote: Hi, I am studying to compile an application using CMake in Cygwin. I am installing a file using the install command based on the value of CONFIGURATIONS variable. May I know

Re: [CMake] coverage using gcov failed

2013-05-01 Thread Lloyd
? #Code coverage related code SET (DO_CODE_COVERAGE false CACHE BOOL Enable Code coverage?) if(DO_CODE_COVERAGE) ADD_DEFINITIONS(-fprofile-arcs -ftest-coverage) LINK_LIBRARIES(gcov) endif(DO_CODE_COVERAGE) Thanks, Lloyd -Bill -- Powered by www.kitware.com Visit other Kitware

[CMake] solving dll dependency

2013-04-30 Thread Lloyd
the dlls to the executable directory.here what method is used by cmake-gui ? Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki

[CMake] default CONFIGURATIONS in cygwin

2013-04-27 Thread Lloyd
project with visual studio, but in the cygwin build directory, no Debug or Release folders are created! Hoe can solve this? Is there any option in make to specify the build? I checked make help , did not see any option for this Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware

[CMake] Cygwin Boost find error

2013-04-25 Thread Lloyd
it is not possible to use the Windows version of boost with cygwin as I am using different compilers (Visual studio in windows and gcc in cygwin). Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep

Re: [CMake] Cygwin Boost find error

2013-04-25 Thread Lloyd
Thanks the link helped me to solved the problem. Sorry, I shall avoid irrelevant posts in the future On Thu, Apr 25, 2013 at 12:30 PM, marco atzeri marco.atz...@gmail.comwrote: On 4/25/2013 8:54 AM, Lloyd wrote: Hi, I am building a project in both Windows 7 and Cygwin. I am using boost

[CMake] coverage using gcov failed

2013-04-25 Thread Lloyd
any coverage files. Ignoring Coverage request. Built target ExperimentalCoverage Why is the coverage files are not created? Thanks, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic

Re: [CMake] Copy dlls to release and debug folder

2013-04-19 Thread Lloyd
) target_link_libraries(ParamGui ${QT_LIBRARIES}) From: cmake-boun...@cmake.org [mailto:cmake-boun...@cmake.org] On Behalf Of Lloyd Sent: 18 April 2013 12:40 To: Thomas Richard Cc: CMake ML Subject: Re: [CMake] Copy dlls to release and debug folder I assume that this is the recommended

[CMake] Get path to release folder

2013-04-19 Thread Lloyd
;Main executable BuildDir\src\lib\reverse\Debug ; reverse.dll library directory What is the right method to get the path to the library (reverse.dll) directory? or can you please suggest a method to get this path in a portable (crossplatform) way? Thanks, Lloyd

Re: [CMake] Error in running tests

2013-04-19 Thread Lloyd
the WORKING_DIRECTORY parameter in add_test(), and/or set the PATH env. variable using the test's property ENVIRONMENT? On Unix systems, the path issues should be handled by RPATH/RUNPATH. Petr On Mon, Apr 15, 2013 at 10:58 AM, Lloyd lloydkl.t...@gmail.com wrote: On Mon, Apr 15, 2013 at 12:10 PM

[CMake] Copy dlls to release and debug folder

2013-04-18 Thread Lloyd
resides). When I searched the mailing list, I have seen an advise to use add_custom_command(TARGET ...). Is this the right approach? Wont it be executed after each build, thus causing repeated dll copies? Can you please suggest me the right way? Thanks, Lloyd -- Powered by www.kitware.com

Re: [CMake] Copy dlls to release and debug folder

2013-04-18 Thread Lloyd
I assume that this is the recommended approach. I tried to use the script you have provided, the call GetQtDLLs(DEBUG_DLLS RELEASE_DLLS) is not populating any of the variables (DEBUG_DLLS or RELEASE_DLLS) with qt dll names. I am new to cmake, Am I missing something? Thanks, Lloyd On Thu

Re: [CMake] Error in running tests

2013-04-15 Thread Lloyd
test library (dll) as well as the my libraries dll to the root of build folder. What is the approach used by professional developers? I tried looking at the cmake file of VTK, but it contains only MAKE_DIRECTORY and ADD_SUBDIRECTORY commands! Thanks Lloyd Petr On Mon, Apr 15, 2013 at 6:43

Re: [CMake] Error in running tests

2013-04-14 Thread Lloyd
On Fri, Apr 12, 2013 at 5:00 PM, Lloyd lloydkl.t...@gmail.com wrote: of course... This is the source of my test cmake file #Cmake file of Tests cmake_minimum_required (VERSION 2.6) SET(TST_SRC test_rev.cpp test_runner.cpp) FIND_PACKAGE(Boost REQUIRED COMPONENTS unit_test_framework

Re: [CMake] TARGET_LINK_LIBRARIES got a link error

2013-04-13 Thread Lloyd
On Sat, Apr 13, 2013 at 1:04 AM, Alexander Neundorf a.neundorf-w...@gmx.net wrote: On Friday 12 April 2013, Lloyd wrote: Hi, I am new to Cmake and at present exploring its features for migrating our projects build system to use it. I have main source folder inside that another

[CMake] TARGET_LINK_LIBRARIES got a link error

2013-04-12 Thread Lloyd
cannot locate the location of my library build location. What is the right way to solve this kind of problem? Thanks, Lloyd As a sample I am including my Cmake code #Cmake file of library source code #Path- Myproject/src/lib/reverse cmake_minimum_required (VERSION 2.6) if(WIN32) SET (REV_SRC

Re: [CMake] TARGET_LINK_LIBRARIES got a link error

2013-04-12 Thread Lloyd
On Fri, Apr 12, 2013 at 11:58 AM, Rolf Eike Beer e...@sf-mail.de wrote: Lloyd wrote: Hi, I am new to Cmake and at present exploring its features for migrating our projects build system to use it. I have main source folder inside that another folder contains the source for our

Re: [CMake] TARGET_LINK_LIBRARIES got a link error

2013-04-12 Thread Lloyd
Thanks Jc and Eike, it solved my problem On Fri, Apr 12, 2013 at 12:31 PM, Jean-Christophe Fillion-Robin jchris.filli...@kitware.com wrote: Hi Lloyd, Seems you have a small typo, target name case should be consistent. Try to use: TARGET_LINK_LIBRARIES(Tutorial Reverse) instead

[CMake] Error in running tests

2013-04-12 Thread Lloyd
) # What am i missing here? Thanks a lot, Lloyd -- Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ Follow this link

Re: [CMake] Error in running tests

2013-04-12 Thread Lloyd
Yes I built the test and it is in E:\CMakeDemo\BuildDir\tests\Debug\test_rev.exe I don't know the right way to locate this test executable for cmake Thanks, Lloyd On Fri, Apr 12, 2013 at 4:42 PM, Petr Kmoch petr.km...@gmail.com wrote: Hi Lloyd. Do you actually have a target (executable

Re: [CMake] Error in running tests

2013-04-12 Thread Lloyd
/CMakeLists.txt (or at least the parts relevant to creating test_rev)? 2. Does it work if you use the enhanced signature of add_test? I mean 'add_test(NAME Test COMMAND test_rev)' Petr On Fri, Apr 12, 2013 at 1:18 PM, Lloyd lloydkl.t...@gmail.com wrote: Yes I built the test and it is in E

[CMake] SET_SOURCE_FILES_PROPERTIES different properties for same file, same library

2010-05-12 Thread Bryn Lloyd
Hi, I would like to cmakeify the UMFPACK/AMD libraries by Timothy Davis. I need to compile the same source file, multiple times, with different flags/defines in order to link the resulting object files into one library. something like this: $(CC) -DDINT -c umf_analyze.c -o

[CMake] CMAKE_CURRENT_SCRIPT_DIR?

2006-11-07 Thread Lloyd Hilaiel
Howdy all, Did some searching but couldn't find a means to determine the current directory in which the currently processed CMake file resides. This is interesting for cases where the INCLUDE directive includes a cmake file that wishes to include others relative to itself. Is there a means of

Re: [CMake] What about...

2006-05-26 Thread Lloyd Hilaiel
, lloyd /-- Around 6 PM on [05/26/06] ([EMAIL PROTECTED]) said -- On Friday 26 May 2006 17:55, you wrote: A 'configure' script generator that will just convert between the (good old) configure and the cmake foo.  Makes it actually possible to discover what features there are without consulting

Re: [CMake] a backwards compatible language simplification

2006-05-22 Thread Lloyd Hilaiel
/-- Around 10 PM on [05/18/06] ([EMAIL PROTECTED]) said -- That's nice already - changing 3 times the conditions in a if-else-endif construct was quite boring :-) Do you plan to also remove the parenthesis in a future release ? Gaetan My patch also made any unparenthesized cmake

Re: [CMake] cmake ruby bindings (or perl, or python, or ...)

2006-05-16 Thread Lloyd Hilaiel
(and tirelessly maintain it) do. If the concensus is the former then I'll shut up and continue to use (and advocate) cmake as it is. lloyd ___ CMake mailing list CMake@cmake.org http://www.cmake.org/mailman/listinfo/cmake

Re: [CMake] cmake ruby bindings (or perl, or python, or ...)

2006-05-16 Thread Lloyd Hilaiel
step 0. use/advocate cmake for a year step 1. read code, hack on code, get idea me - step 2. see if folks are interested/viable idea/makes sense step 3. read code and make a concretish proposition you - step 4. get work done. Are you personally offering to do a good

[CMake] cmake ruby bindings (or perl, or python, or ...)

2006-05-15 Thread Lloyd Hilaiel
(probably off topic) The more and more I work with cmake, the more it feels like there are two (or more) distinct tools rolled into one... the front end is a piece of software that interprets CMakeLists.txt files, and drives a back end. The back end is the stuff that actually generates compiler

[CMake] FILE(RELATIVE_PATH) error output broken in 2.4.1

2006-05-10 Thread Lloyd Hilaiel
FILE(RELATIVE_PATH outvar sourcedir destfile) expects both sourcdir and destfile to be absolute (full). If either is not absolute, an error message is emitted about sourcedir (where we should be emitting an error a about sourcedir if it's relative, or destfile if that's relative). Patch

[CMake] a backwards compatible language simplification

2006-05-10 Thread Lloyd Hilaiel
Having spent all day hacking a massive project using cmake, I wonder... could this FOREACH (foo ${foolist}) IF (${foo} STREQUAL bar) ... ELSE (${foo} STREQUAL bar) ... ENDIF (${foo} STREQUAL bar) ENDFOREACH (foo ${foolist}) change to this: FOREACH (foo ${foolist}) IF