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
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:
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
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
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
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
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 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
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
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
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
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
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)
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
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
@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
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
,
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
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
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
, 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
). 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
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
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
.
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
(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
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
?
#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
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
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
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
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
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
)
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
;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
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
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
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
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
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
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
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
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
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
)
#
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
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
/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
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
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
,
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
/-- 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
(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
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
(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
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
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
56 matches
Mail list logo