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 mac
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
s
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 g
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:
https://wandbox.org/
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 resul
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 Christ
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"
>
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 and
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 weird
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 P
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 10:56
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:
m
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.
>
> https://a
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.
https://apple.stackexchange.com/questions/337940/why-is-usr-inclu
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 /u
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
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 -Wl,dynami
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 "
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, 20
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 significan
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 value
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
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]+)$")
> message(STATU
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}")
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]+)")
>
> m
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 i
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
op
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 travers
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!
--
Power
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:
http://www.
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 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 bu
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 hav
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
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()
>
>
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
37 matches
Mail list logo