Yeah, that issue with /MD and /MT is the reason every project I've seen
that deals with this problem uses something like this:
#
https://cmake.org/Wiki/CMake_FAQ#How_can_I_build_my_MSVC_application_with_a_static_runtime.3F
foreach(flag_var
CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FL
A while ago I did an experiment along the same lines, using something like this
in CMake/MTflags.cmake. (What we really needed was forcing /MT
/D_HAS_ITERATOR_DEBUGGING=0 even on debug builds, because we were using an
external library only available in /MT format. So I might have accidentally
Hello all,
I am trying to develop a execute_process command that will first load the env
variables set by the appropriate vcvarsall, and then run a compile command. See
here for my progress so far:
set(cuda_generation_command cmd /c "\"call
\"$ENV{VS${VS_IDE_VERSION}0COMNTOOLS}../../VC/vcvarsa
Setting /MT or /MD is pretty important, and is a transitive requirement.
See: https://msdn.microsoft.com/en-us/library/2kzt1wy3(VS.80).aspx
The standard mechanism of using target_compile_options isn't quite
appropriate because it will simply append the flags used by each library
and use the last o
On 06/08/2016 06:02 PM, Gonzalo Garramuño wrote:
> I tried v3.6.0 rc1 but it fails on linking with a message about unknown
> symbols when doing cmake -E vs_link_dll on a windows library. It seems
> not to recognize the symbols in, for example, tinyxml2.
>
> The same code works just fine under c
On 6/8/2016 6:02 PM, Gonzalo Garramuño wrote:
I tried v3.6.0 rc1 but it fails on linking with a message about unknown
symbols when doing cmake -E vs_link_dll on a windows library. It seems
not to recognize the symbols in, for example, tinyxml2.
The same code works just fine under cmake v3.5.2.
Perfect!! Now everything is working correctly!!
Thank you so much!!
Regards,
Ana
2016-06-09 14:08 GMT+01:00 Domen Vrankar :
> > And now? Do I have to uninstall cmake 3.5 and install it again?
>
> Rebuild (in such cases I usually remove previous build dir as in the
> past sometimes it did not de
> And now? Do I have to uninstall cmake 3.5 and install it again?
Rebuild (in such cases I usually remove previous build dir as in the
past sometimes it did not detect if a new library was added to the
environment) and install (install is a dumb command that only copies
files so you don't need to
OK, thank you very much!
And now? Do I have to uninstall cmake 3.5 and install it again?
Regards
2016-06-09 13:31 GMT+01:00 Domen Vrankar :
> > Now I have the right version of cmake (3.5.2), but the ccmake version is
> > still 2.8.12... How can I update ccmake too?
>
> Not 100% certain but my g
> Now I have the right version of cmake (3.5.2), but the ccmake version is
> still 2.8.12... How can I update ccmake too?
Not 100% certain but my guess would be that you are missing
ncurses-devel package and therefore ccmake was not built.
sudo yum install ncurses-devel
Regards,
Domen
--
Power
Hello!
I had to update cmake version from 2.8.12 to 3.5.2. I followed the steps
here:
https://xinyustudio.wordpress.com/2014/06/18/how-to-install-cmake-3-0-on-centos-6-centos-7/
.
Now I have the right version of cmake (3.5.2), but the ccmake version is
still 2.8.12... How can I update ccmake too?
> On 9 Jun 2016, at 09:51, Petr Kmoch wrote:
>
> I believe you're looking for the directory property CMAKE_CONFIGURE_DEPENDS (
> https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html ).
> Adding a file path to that property causes any changes to that file to
> trigger a re
Hi James,
I believe you're looking for the directory property CMAKE_CONFIGURE_DEPENDS
( https://cmake.org/cmake/help/latest/prop_dir/CMAKE_CONFIGURE_DEPENDS.html
). Adding a file path to that property causes any changes to that file to
trigger a regeneration:
set_property(DIRECTORY APPEND PROPE
Hi,
Is there a way to make the entire build-system depend on a file? I have some
data I’m reading into my CMakeList.txt via file(READ), and I want changes to
that file to effectively act as if the CMakeList.txt itself was modified.
The read values are used to populate some variables via string
Thanks for all answers. I had to read the documentation before asking :-D
I changed the line for the executable from
> install(FILES ...
into
> install(PROGRAMS ...
That worked and as far as i can see is sufficient for my requirements.
2016-06-08 20:09 GMT+02:00 Domen Vrankar :
> > This could p
15 matches
Mail list logo