Hi everyone,
i had the same question a few days ago but can't rember the command (and
can't find it in the cods):
I have a regular expression like "WITH_LIB${lib}_EXAMPLE_([A-Za-z]+)"
and i want the get the content of the found variables in the (), the
command i used stored them if MATCH_XYZ
Am Dienstag, 4. Juni 2019, 18:10:19 CEST schrieb Steven Truppe:
> Hello again,
>
>
> i've the following variable defined:
>
> set(WITH_LIB_GLAD_EXAMPLE_BASIC 1)
>
> And the if the line
>
>
> foreach(_var VARIABLES)
>
> if(_var MATCHES "WITH_LIB_GLAD_EXAMPLE_([A-Za-z]+)")
>
>
On Tue, 2019-06-04 at 19:38 +0530, vinay kumar Kotegowder wrote:
> The original intent of the snippet is to find the required tool chain
> (On windows : arm-none-eabi-gcc.exe or armclang.exe; On Linix :
> arm-none-eabi-gcc or armclang) path which can later be used to build
> the project.
>
> I
Hi everyone again,
i've the following code:
https://paste.debian.net/1086040/
and i just try to traverse a list and include files whose part of the
name are the list entries.
best regards!
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
On Tue, 2019-06-04 at 19:07 +0530, vinay kumar Kotegowder wrote:
> Hi Everyone,
>
> This is simple code running on Windows machine:
>
> if(WIN32)
> message(STATUS "On windows")
> find_program(_TOOL
> arm-none-eabi-gcc.exe
> PATHS "C:"
> )
> endif()
>
On Tue, 2019-06-04 at 16:39 +0200, Steven Truppe wrote:
> Hi everyone,
>
>
> i had the same question a few days ago but can't rember the command
> (and
> can't find it in the cods):
>
> I have a regular expression like "WITH_LIB${lib}_EXAMPLE_([A-Za-z]+)"
> and i want the get the content of the
Hi everyone,
i have the following code:
set(ALL_LIBS "glad;glfw")
# WITH_LIB_GLAD
option(WITH_LIB_GLAD 1)
option(WITH_LIB_GLAD_EXAMPLE_BASIC "Build the basic Glad example (default:0)" 1)
option(WITH_LIB_GLAD_EXAMPLE_SECOND "Build the second Glad example (default:0)"
1)
# WITH_LIB_GLFW
The original intent of the snippet is to find the required tool chain
(On windows : arm-none-eabi-gcc.exe or armclang.exe; On Linix :
arm-none-eabi-gcc or armclang) path which can later be used to build
the project.
I have been trying with find_program and find_path commands.
My understanding was
Hi Everyone,
This is simple code running on Windows machine:
if(WIN32)
message(STATUS "On windows")
find_program(_TOOL
arm-none-eabi-gcc.exe
PATHS "C:"
)
endif()
message(STATUS "${_TOOL}")
Result after executing: cmake -P mycmake.cmake
-- On windows
Hello again,
i've the following variable defined:
set(WITH_LIB_GLAD_EXAMPLE_BASIC 1)
And the if the line
foreach(_var VARIABLES)
if(_var MATCHES "WITH_LIB_GLAD_EXAMPLE_([A-Za-z]+)")
message(STATUS "Found a match")
endforeach()
I never get the message "Found match", what am
On Tue, 2019-06-04 at 17:11 +0200, Steven Truppe wrote:
> I want the output not to be 'in' but 'glade' ...
>
>
> On 04.06.19 17:10, Steven Truppe wrote:
> >
> > Hi everyone again,
> >
> >
> > i've the following code:
> >
> > https://paste.debian.net/1086040/
> >
> > and i just try to
I want the output not to be 'in' but 'glade' ...
On 04.06.19 17:10, Steven Truppe wrote:
Hi everyone again,
i've the following code:
https://paste.debian.net/1086040/
and i just try to traverse a list and include files whose part of the
name are the list entries.
best regards!
--
On Jun 4, 2019, at 1:33 PM, Bryan Christ wrote:
> I would agree with you, but I've been told that OSX is moving away from it's
> Unix heritage and placing libraries in non-traditional locations (not /usr or
> /usr/local) and that's going to be increasingly the norm in the future.
>
>
I found the solution:
get_cmake_property(_vars VARIABLES)
foreach(_var ${_vars})
string(TOUPPER ${lib} lib_upper)
if(_var MATCHES "^WITH_LIB_${lib_upper}_EXAMPLE_([A-Za-z]+)$")
message(STATUS "Number of examples found: ${CMAKE_MATCH_COUNT}")
Juan,
In my case I was looking to build and link against ncurses. A second set
of libs got installed by homebrew so I decided to use those instead. To
use the alternate location, I was told the following would work (and it
did).
set(CMAKE_PREFIX_PATH /usr/local/opt/ncurses)
On Mon, Jun 3,
On Jun 4, 2019, at 10:56 AM, Bryan Christ wrote:
> Thanks for your suggestions. I went through that thread pretty thoroughly
> trying all of the recommended tips and, unfortunately, nothing seemed to
> work. I also tried running that open command you cited, but there are still
> no includes
Juan,
Thanks for your suggestions. I went through that thread pretty thoroughly
trying all of the recommended tips and, unfortunately, nothing seemed to
work. I also tried running that open command you cited, but there are
still no includes for ncurses in /usr/include or /usr/local/include. In
I am proud to announce the first CMake 3.15 release candidate.
https://cmake.org/download/
Documentation is available at:
https://cmake.org/cmake/help/v3.15
Release notes appear below and are also published at
https://cmake.org/cmake/help/v3.15/release/3.15.html
Some of the more
On Jun 3, 2019, at 3:27 PM, Juan E. Sanchez wrote:
> It looks like macOS made it so you have to do something like this:
> open
> /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg
>
> for libraries and includes to be put into /usr.
*Libraries* should exist in
Hi everyone,
i've the following code:
macro(bsBuildLibExamples lib)
# get all examples
get_cmake_property(_vars VARIABLES)
foreach(_var ${_vars})
string(TOUPPER ${lib} lib_upper)
set(WITH_LIB_${lib_upper}_EXAMPLES "")
if(_var MATCHES
For building my project on Linux with gcc I set the following.
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--no-as-needed")
Later, if, the system appears to be OSX, I change it:
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-undefined
Thanks alot. My other problem i have no how can i loop over the result,
there are just variables and ${CMAKE_CATCH_COUNT) what command can i use
the iterate over the result ??
best regrads!
On 04.06.19 19:22, Kyle Edwards wrote:
On Tue, 2019-06-04 at 19:19 +0200, Steven Truppe wrote:
I found
On Tue, 2019-06-04 at 19:19 +0200, Steven Truppe wrote:
> I found the solution:
> get_cmake_property(_vars VARIABLES)
> foreach(_var ${_vars})
> string(TOUPPER ${lib} lib_upper)
> if(_var MATCHES "^WITH_LIB_${lib_upper}_EXAMPLE_([A-Za-
> z]+)$")
>
tl;dr: should there be at least one target per CMakeLists.txt?
https://cmake.org/cmake/help/v3.14/command/add_subdirectory.html
> add_subdirectory(source_dir [binary_dir] )
> "The binary_dir specifies the directory in which to place the output
files. [...] If binary_dir is not specified, the
Guy,
I would agree with you, but I've been told that OSX is moving away from
it's Unix heritage and placing libraries in non-traditional locations (not
/usr or /usr/local) and that's going to be increasingly the norm in the
future.
Hello,
It looks like you are making progress. Note that to use the gcc-8 and
g++-8 compilers from brew, you need to have include files in
/usr/include. Otherwise you get strange errors about missing _stdio.h,
etc. I believe in another thread, someone suggests how to make sure the
headers
I've made the code more readable and easy to understand so you don't
have to read through all the code:
https://wandbox.org/permlink/qp7ScGBeMOtolfxb
On 05.06.19 00:47, Steven Truppe wrote:
Hi everyone,
i finaly have solved the issues i had and now have the working code on:
Thanks for the explanation. Yes. The use of the term Library certainly
added to my confusion. I've been coding on Linux for 20 and the "proper"
way of doing things on Mac is a bit elusive to me as I stumble around.
On Tue, Jun 4, 2019 at 4:21 PM Guy Harris wrote:
> On Jun 4, 2019, at 1:33
This works:
macro(bsPrintList)
foreach(l ${ARGN})
message(STATUS "List entry: ${l}")
endforeach()
endmacro()
bsPrintList(foo bar baz)
On Tue, 4 Jun 2019 at 22:14, Steven Truppe wrote:
>
> Hi everyone, like you know i'm relative new the cmake and i'm working my way
> through the book
On Jun 4, 2019, at 2:27 PM, Bryan Christ wrote:
> Thanks for the explanation. Yes. The use of the term Library certainly
> added to my confusion. I've been coding on Linux for 20 and the "proper" way
> of doing things on Mac is a bit elusive to me as I stumble around.
Yeah, it must be
Hi everyone,
i finaly have solved the issues i had and now have the working code on:
https://wandbox.org/permlink/ujEH8F91SVzMyt1D
The problem is that the i only get the last result as output, he create
the variables and stores them (i tested with cmake_print_variables) but
at the end the
Hi,
Looking at the cmake there, your bsBuildLibExamples macro starts off by doing
set(WITH_LIB_${lib_upper}_EXAMPLES "")
but lib_upper isn't set to match the new value of lib until later inside the
foreach.
So it seems like you're resetting the value of the previous iteration.
Moving the
Yes. Unfortunately, I still don't get the wide version of ncurses so I
have to point elsewhere. But even assuming that solved my problem , I
understand the procedure is a stop-gap and might not eventually be
supported.
On Tue, Jun 4, 2019 at 4:01 PM Guy Harris wrote:
> On Jun 4, 2019, at
That was the issue - thanks alot for you help, i'm sitting now for over
5 hours in front of cmake and my eyes need some rest (and more brain
needs more cmake knowledge:).
best regards!
On 05.06.19 01:13, stephan.sz...@sony.com wrote:
Hi,
Looking at the cmake there, your bsBuildLibExamples
Hi everyone, like you know i'm relative new the cmake and i'm working my
way through the book and the documentation but there is something that i
don't understand in the docs.
I just want to write a macro that uses as first argument a list and then
iterates over it.
The docs show the example:
Indeed. They all have their nuances :)
On Tue, Jun 4, 2019 at 4:36 PM Guy Harris wrote:
> On Jun 4, 2019, at 2:27 PM, Bryan Christ wrote:
>
> > Thanks for the explanation. Yes. The use of the term Library certainly
> added to my confusion. I've been coding on Linux for 20 and the "proper"
I think you want CMAKE_SHARED_LINKER_FLAGS:
https://cmake.org/cmake/help/latest/variable/CMAKE_SHARED_LINKER_FLAGS.html
You can also use target_link_libraries to pass linker flags:
https://cmake.org/cmake/help/latest/command/target_link_libraries.html
On Tue, Jun 4, 2019 at 1:12 PM Bryan
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 4b68baa776bf8ccc2911057fc79b558515438900 (commit)
via
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 0a68c30b81020dde3f149d9b02a598925d746d31 (commit)
via
Am Dienstag, 4. Juni 2019, 15:16:43 CEST schrieb Sebastian Holtermann:
> Hello Kornel.
>
> > Recent tries to test cmake yield to errors for following tests:
> > 582 - Qt5Autogen.MocIncludeRelaxed (Failed)
> > 583 - Qt5Autogen.MocIncludeStrict (Failed)
> > 584 -
Sure, rebuild_cache was the first I tried. The test-errors remain even in the
master tree of today.
Performing now on a clean build ...
#ctest -R Qt5Autogen.Moc
Test project /BUILD/BUILDMint18/BuildCmakeGit
Guessing configuration NoConfig
Start 553: Qt5Autogen.MocOnly
1/8 Test #553:
ber components.
set(CMake_VERSION_MAJOR 3)
set(CMake_VERSION_MINOR 15)
-set(CMake_VERSION_PATCH 0)
-set(CMake_VERSION_RC 1)
+set(CMake_VERSION_PATCH 20190604)
+#set(CMake_VERSION_RC 1)
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=4ec377f5c2f1cc287a433f009a6
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 a4231943117f5ba3dd0fdc6c8b1824334162b69f (commit)
via
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 6a78bdbb06e27a5474bf3262d4dcf7459a8627f9 (commit)
via
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 dae9b3e16fdacda16ea28f47dd42d3243ba42be5 (commit)
via
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 annotated tag, v3.15.0-rc1 has been created
at 3dc267d3824e0faacd3d80710d7c93003fbf4267 (tag)
tagging
I am proud to announce the first CMake 3.15 release candidate.
https://cmake.org/download/
Documentation is available at:
https://cmake.org/cmake/help/v3.15
Release notes appear below and are also published at
https://cmake.org/cmake/help/v3.15/release/3.15.html
Some of the more
t a/Source/CMakeVersion.cmake b/Source/CMakeVersion.cmake
index a3679e5..c0b209c 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 15)
-set(CMake_VERSION_PATCH 20190604)
+set(CMake_VER
Recent tries to test cmake yield to errors for following tests:
582 - Qt5Autogen.MocIncludeRelaxed (Failed)
583 - Qt5Autogen.MocIncludeStrict (Failed)
584 - Qt5Autogen.MocSkipSource (Failed)
Compiled master branch of http://cmake.org/cmake.git
As en example, here the
49 matches
Mail list logo