by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 25 2016 19:02
    inbilla commented #1
  • Oct 25 2016 18:17
    inbilla commented #1
  • Oct 25 2016 08:54
    inbilla commented #1
  • Oct 24 2016 14:38
    epot commented #1
  • Oct 24 2016 10:52
    mlimber commented #1
  • Oct 24 2016 10:52
    mlimber commented #1
  • Mar 22 2016 05:55

    inbilla on fastbuild-attempt1

    Fixed SubProject being broken. … (compare)

  • Mar 21 2016 09:13

    inbilla on fastbuild-attempt1

    Fixing the regression in Custom… (compare)

  • Mar 21 2016 03:28

    inbilla on fastbuild-attempt1

    Fixing two broken tests when se… Fixed Complex test. Custom comm… running fbuild on parent direct… and 1 more (compare)

  • Mar 09 2016 08:38

    inbilla on fastbuild-attempt1

    Fixing custom PDB directory def… (compare)

  • Mar 09 2016 07:20

    inbilla on fastbuild-attempt1

    Correctly add '/DEF' flagfor ex… Merge pull request #12 from pac… (compare)

  • Mar 09 2016 07:20
    inbilla closed #12
  • Mar 09 2016 07:20
    inbilla closed #13
  • Mar 09 2016 07:20
    inbilla commented #13
  • Mar 09 2016 07:15

    inbilla on fastbuild-attempt1

    Fastbuild is a multiconfig gene… Disabling distributed build dat… Fixing release builds linking t… and 7 more (compare)

  • Mar 07 2016 07:56
    l0calh05t commented #15
  • Mar 07 2016 07:20
    l0calh05t commented #15
  • Mar 07 2016 07:18
    l0calh05t commented #16
  • Mar 07 2016 06:37
    inbilla commented #17
  • Mar 07 2016 06:35
    inbilla commented #14
Theodore Newton
@twln1
'clang' works but clang-3.6 is an issue
T4lus
@T4lus
hello every one
Ádám Szűcs
@JacksonFurrier
Seems like it is something nasty with your clang version
this "\usr\bin\clang-3.6" doesn't seems like an executable to me
hello @T4lus
Ádám Szűcs
@JacksonFurrier
@colin-guyon do you have any updates on the FastBuild generator? For me the only issue is such, when linking I run out of command line length under windows 32767. The last commit I see points this out, as soon as you solve it I am here to test.
Theodore Newton
@twln1
@JacksonFurrier Weird thing is that same clang version will work fine for -GNinja or just plain cmake so I don't really understand what the issue is.
Colin GUYON
@colin-guyon
Hello, sorry for not being reactive
I worked on another branch to take another base branch for the FASTBuild generator, the one from JeremieA instead of the one from @comicfans, because a few things are important on this branch (https://github.com/JeremieA/fastbuild/commits/dev-IS) and I didn't succeed to quickly backport them on the comicfans' version. I think one of the important things is to always have the same fbuild.bff output when the input does not change, so that FASTBuild does not re-parse the file each time.
But at the end we will have to take some useful commits/fixes from the comicfans' version.
Here is the last version, that successfully compiles projects in my company: https://github.com/InSimo/CMake/commits/fastbuild-attempt3
With this version you also need to compile a slightly modified version of FASTBuild: https://github.com/InSimo/fastbuild/commits/dev-IS-2
So you can test it if you want ;)
It is based on CMake 3.12.0 and FASTBuild 0.96
Colin GUYON
@colin-guyon
@twln1 Your issue if certainly due to the fact that FASTBuild tries to parse the compiler executable name to guess a "compilerFamily", but it is limited to a fixed list: https://github.com/fastbuild/fastbuild/blob/master/Code/Tools/FBuild/FBuildCore/Graph/CompilerNode.cpp#L147
"clang-3.6" is not part of it. Maybe with some CMake env var you could tell CMake that the executable to take is "clang" (I guess clang is a symlink to clang-3.6, or the contrary ?). Else, FASTBuild could maybe be improved to correctly guess the compilerFamily even if the version of the compiler is in the file name... (or temporarily you could add "clang-3.6" in FASTBuild CompilerNode.cpp)
Colin GUYON
@colin-guyon
@twln1 Maybe you could set the C / CXX env vars to point to "\usr\bin\clang" (if it is indeed the same as your clang-3.6) (https://gitlab.kitware.com/cmake/community/wikis/FAQ#how-do-i-use-a-different-compiler)
Ádám Szűcs
@JacksonFurrier
@colin-guyon awesome, do you plan to upstream this to both Fastbuild and CMake? I will be back as soon as I tested these version on our codebase, but before thanks for the great work you have put into this. This must be an officially supported generator!
Colin GUYON
@colin-guyon
@JacksonFurrier Thanks ;) (but my work is limited compared to the ones who initiated the generator). Indeed it would be really great to upstream this to CMake and Fastbuild, even though I think it would need some cleaning before. I won't have time to work on it in short term, but at the end this is a goal.
Maybe also some of the changes made in FASTBuild could be removed and done using existing features of FASTBuild (the author of FASTBuild could give his feelings on this).
The distributed compilation works for my cases but this would certainly need to be improved to handle more cases (currently only tested on Windows with MSVC 2015).
Theodore Newton
@twln1
@colin-guyon Yes, that fixed the issue :) Silly question though, how do I compile InSimo's fastbuild version into an executable so that I can test that version of CMake?
Theodore Newton
@twln1
Also get
HT/Source/cmGlobalFastbuildGenerator.h:27:7: error: ‘void cmGlobalFastbuildGenerator::GenerateBuildCommand(std::vector<std::__cxx11::basic_string<char> >&, const string&, const string&, const string&, const string&, const string&, bool, bool, const std::vector<std::__cxx11::basic_string<char> >&)’ marked ‘override’, but does not override void GenerateBuildCommand( ^ Makefile:350: recipe for target 'cmake.o' failed make: *** [cmake.o] Error 1
This error when attempting to bootstrap that version of cmake
Colin GUYON
@colin-guyon
@twln1 here is a little howto I made to compile fastbuild, hope it is clear enough:
For the CMake build error indeed sorry it seems I forgot to push one small modification, "int /jobs/" should be added
Colin GUYON
@colin-guyon
sorry: For the CMake build error indeed sorry it seems I forgot to push one small modification, int /*jobs*/ should be added in the parameters in the signature of the GenerateBuildCommand (not easy for me to push the commit now)
Theodore Newton
@twln1
I'm trying to build all this in linux. At the minute the main thing I'm trying to fix is that it's trying to use /usr/bin/ar as a linker, but the -L flag that it's trying to use isn't a valid flag. I need to figure out which linker it should be using
Colin GUYON
@colin-guyon
I just pushed missing commits on a new branch, you should now take the https://github.com/InSimo/CMake/commits/fastbuild-attempt4 branch if you want to test.
I will tell you if I find some time to try the compilation on Linux
Theo Newton
@theo.newton_gitlab
Anyone got some speed comparisons with this vs ninja?
Colin GUYON
@colin-guyon
As FASTBuild supports distributed compilation across several machines, it could be much faster, but with a single machine it should be similar (even though I'm not sure, it would need measurements)
Ricardo Reis
@rickomax
Hi!
Anyone knows how to add a version-script to Emscripten with CMAKE?
I've tried with the following approach, but seems LLVM is ignoring the version-script:
set (CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--version-script=" ${CMAKE_SOURCE_DIR} "/test.version")
Jomo Fisher
@jomof
@colin-guyon I was wondering whether FASTbuild generator would work for Android targeting. I ran into a problem that I'm not sure how to approach. During generation phase cmake does a few try_compile calls and I get a failure like: cmake\debug\x86-e\CMakeFiles\CMakeTmp\fbuild.bff(209,2): FASTBuild Error #1004 - Alias() - Empty string not allowed for property 'Targets'.
Alias('cmTC_d99c4-PreBuild-Debug')
^
--here
When I look at that fbuild.bff I do see an Alias with empty .Targets block. Looks like this:
Alias('cmTC_72752-PreBuild-Debug')
{
    .Targets = 
    {
    }
}
I'd be happy to debug and contribute a PR if possible but I'm not sure what this Alias is trying to do so I'm not sure what to look for. Any help would be appreciated
I can provide a lot more information about how things are set up but I don't want to spam until I know what you need
Colin GUYON
@colin-guyon
Hi @jomof you certainly need this commit : InSimo/fastbuild@9bc10bc that I made to workaround this issue.
So you would need to build FASTBuild with the modifications of this branch https://github.com/InSimo/fastbuild/commits/dev-IS-2
Colin GUYON
@colin-guyon
Ideally the CMake FASTBuild generator should not produce empty targets like that to be compliant with FASTBuild, but for the moment there is this 'easy' workaround
rmawatson
@rmawatson
Hello. If I want to be able to find_package and be able to just use this repository, rather then have to run cmake on it and make make install, do I just need to write a xxxConfig.cmake for the project?
Grant Rostig
@grantrostig
QtCreator from qt.io can use cmake. Anyone got it working with a complex external library such as HPX? Basically the HPX libraries and headers are no in the system's default locations, and I'm having a problem with linking with those libraries. Here my sample project https://github.com/grantrostig/binomial_hpx_cmake Any help is appreciated.
Grant Rostig
@grantrostig
With help, I got this working and the project is here: https://github.com/grantrostig/binomial_hpx_cmake
Jin Shun Lee
@jinshunlee

Hi, i want to run clang-tidy everytime i build with cmake, how can i do this?

other than adding
set(CMAKE_CXX_CLANG_TIDY clang-tidy -checks=-*,readability-*)
to the CMakeLists.txt

I tried to read the docs but I don't understand how to do it

goodandrewsoft
@goodandrewsoft
Hello.
How disable testing in this https://github.com/artyom-beilis/nowide/blob/master/standalone/CMakeLists.txt , before install?
Thilo Schuchort
@tschuchortdev

A while ago I made this CMake library to clone git repos at configure time: https://github.com/tschuchortdev/cmake_git_clone

It can be used to checkout other CMake libraries from git that need to be available at configure time (which doesn't work with ExternalProject_Add):
Maybe it will be useful for some of you.

OmegaDoom
@OmegaDoom
hello. Is this room dedicated to cmake?
Laneone
@Laneone
Hi, can anyone help me with installing libcurl on macos?
-- Could NOT find CURL (missing: CURL_INCLUDE_DIR)
CMake Error at CMakeLists.txt:140 (message):
Missing library: curl
João Pedro Abreu de Souza
@petrolifero
Hi. "Modern Cmake" tell to don't use variables, use properties on targets, but toolchain files act setting global variables to build. There's a way to define new properties on targets(https://cmake.org/cmake/help/latest/command/define_property.html) but if set toolchains as dummy targets with properties equals to toolchains ordinary global variables, cmake cannot use that to build. There's some way to use properties instead of variables to toolchain files?
Francisco Facioni
@fran6co
there are a couple of things to fix still, but it's passing almost all tests and it's usable with other projects
trsh
@trsh
Hey guys! Could someone guide me how to debug this problem > https://stackoverflow.com/questions/59953960/cmake-and-vs-2017-could-not-find-any-instance-of-visual-studio . Pls!!!
Adam Istvan
@szaqaei_gitlab
@fran6co I've checked the CMake version of yours to test it out with our codebase.( It is really complicated with all types of QT mocs and RC stuff etc.) I wasn't able to build our whole project and I am still thinking about ways how to report these issues (I am working on a closed source). Best could be to do a skype call or smt.
Andreas Wallner
@andreasWallner

Hi,
I have a use-case where I would like to use generator expressions in the linker command line, set by a toolchain file (in an embedded build I'd like to set --scatter=... if a target property is set). From the output command line it seems that the generator expression is not resolved when put in CMAKE_EXE_LINKER_FLAGS. The questions I've got: Is my assumption right? If yes, Is there a way to achieve what I want? Looking at the documentation, is it the case that where not explicitly mentioned, generator expressions are not supported, or is this just not consistent?
What I currently see is:

cmd.exe /C "cd . && C:\Sle90ToolsRep\ARM\ARMCLANG\bin\armlink.exe --cpu Cortex-M3 --strict -Wl,--library_type=microlib --summary-stderr --info summarysizes --map --xref --callgraph --symbols --info sizes --info totals --info unused --info veneers --list ./lst/target.map $<$<BOOL:$<TARGET_PROPERTY:SCATTER_FILE>>:--scatter $<TARGET_PROPERTY:SCATTER_FILE>> ...

and I'd like the generator expression to be resolved to my custom target property

Andreas Wallner
@andreasWallner
For anyone who comes across this: CMAKE_EXE_LINKER_FLAGS does not support generator expressions, the target property LINKER_OPTIONS does, and it defaults to the directory property LINK_OPTIONS
Polar Humenn
@polar

Problem, Windows10, vs2019: using

target_precompile_headers(some_target PRIVATE _pch.h)

when building a subcomponent of a static library, some.lib. The problem is that when I try to link to some.lib, I get a LNK2011: precompiled header not linked in, naming a seemingly random file from the directory of some_target. I have a file in the target called _pch.cpp that includes _pch.h. However, I don't think _pch.cpp.obj is the precompiled header object, as it is only 3kb. It seems to be some_target/CMakeFiles/some_target.dir/CMakeFiles/some_target.dir/cmake_pch.cxx.obj
So, if I put a

target_sources(some_target CMakeFiles/some_target.dir/cmake_pch.cxx)

this problem is rectified. However, this approach sounds counter intuitive to me. It seems like this inclusion should happen automatically, at least on Windows with Ninja.
NOTE: on Linux there is no problem.