<feed xmlns='http://www.w3.org/2005/Atom'>
<title>staging/hauke/include/cmake.mk, branch v19.07.5</title>
<subtitle>Hauke Mehrtens staging tree</subtitle>
<id>https://git.openwrt.org/openwrt/staging/hauke/atom?h=v19.07.5</id>
<link rel='self' href='https://git.openwrt.org/openwrt/staging/hauke/atom?h=v19.07.5'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/'/>
<updated>2020-12-05T19:50:19Z</updated>
<entry>
<title>cmake.mk,rules.mk: fix host builds using CMake and ccache</title>
<updated>2020-12-05T19:50:19Z</updated>
<author>
<name>Petr Štetiar</name>
</author>
<published>2020-11-27T21:50:32Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=5abe98947542cd9374912f895f057fe56f7036b8'/>
<id>urn:sha1:5abe98947542cd9374912f895f057fe56f7036b8</id>
<content type='text'>
Commit f98878e4c17d ("cmake.mk: set C/CXX compiler for host builds as
well") has introduced regression as it didn't taken usage of ccache into
the account so fix it by handling ccache use cases as well.

In order to get this working we need to export HOSTCXX_NOCACHE in
rules.mk as well.

Fixes: f98878e4c17d ("cmake.mk: set C/CXX compiler for host builds as well")
Reported-by: Ansuel Smith &lt;ansuelsmth@gmail.com&gt;
Tested-by: Ansuel Smith &lt;ansuelsmth@gmail.com&gt;
Signed-off-by: Petr Štetiar &lt;ynezz@true.cz&gt;
(cherry picked from commit 524fb5646eec6147aadfdd508219f39bcf8ba8fc)
</content>
</entry>
<entry>
<title>cmake.mk: set C/CXX compiler for host builds as well</title>
<updated>2020-12-05T19:50:19Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2020-11-26T00:08:57Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=77734ce82a8fdc88b88cb1244d6e2f54eeb773b0'/>
<id>urn:sha1:77734ce82a8fdc88b88cb1244d6e2f54eeb773b0</id>
<content type='text'>
Without this, cmake will use whatever CC/CXX is set to, which could be
clang. In that case, at least libjson-c/host will fail to compile.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
(cherry picked from commit f98878e4c17d5f11e78994b4fc456e6b60b2660f)
</content>
</entry>
<entry>
<title>cmake: Install host packages to lib instead of lib64</title>
<updated>2019-12-22T23:31:48Z</updated>
<author>
<name>Rosen Penev</name>
</author>
<published>2019-11-17T21:42:04Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=df45ef54368d3e4f872928f47edc424d843b120d'/>
<id>urn:sha1:df45ef54368d3e4f872928f47edc424d843b120d</id>
<content type='text'>
Several CMake packages such as log4cplus and protobuf(-c) install to
lib64 instead of lib on some hosts. This completely breaks rpath linking.
Override it globally to avoid fixing each package individually.

Signed-off-by: Rosen Penev &lt;rosenp@gmail.com&gt;
Tested-by: Sebastian Kemper &lt;sebastian_ml@gmx.net&gt;
(cherry picked from commit 383abffb1179a142b4c8f86559baad5b24d391c3)
</content>
</entry>
<entry>
<title>build: use CMAKE_SOURCE_SUBDIR variable to cmake.mk</title>
<updated>2018-09-29T15:23:11Z</updated>
<author>
<name>Amol Bhave</name>
</author>
<published>2018-09-24T17:39:19Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=366e6ef5c342f5926d9ab07166b8a40734393dc2'/>
<id>urn:sha1:366e6ef5c342f5926d9ab07166b8a40734393dc2</id>
<content type='text'>
Sometimes, the CMakeLists.txt file is not in the root directory of a
repo. In those cases, the CMAKE_SOURCE_SUBDIR variable can be specified
to use CMakeLists.txt from a subdirectory instead.

Signed-off-by: Amol Bhave &lt;ambhave@fb.com&gt;
</content>
</entry>
<entry>
<title>cmake: skip build system check on compile</title>
<updated>2017-02-21T12:03:20Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2017-02-20T11:13:51Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=294e908a2cb53ab4ea34e202a31fc941a4825e16'/>
<id>urn:sha1:294e908a2cb53ab4ea34e202a31fc941a4825e16</id>
<content type='text'>
cmake checks the build system and its variables on its own to detect if
the makefiles need to be regenerated.
Unfortunately this can invalidate overrides passed in the
Build/Configure step. On non-Linux systems this breaks the build when
switching between targets of the same package architecture.

Fix this by forcibly disabling the build system check and relying on the
LEDE build system to take care of these things

Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>build: move STAGING_DIR_HOSTPKG and BUILD_DIR_HOST back to a common directory for all targets</title>
<updated>2017-01-18T18:47:36Z</updated>
<author>
<name>Matthias Schiffer</name>
</author>
<published>2017-01-18T18:47:36Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=3d71786154fbb3fcfbd652115f3e75db3f729941'/>
<id>urn:sha1:3d71786154fbb3fcfbd652115f3e75db3f729941</id>
<content type='text'>
Using a single host package staging dir (and build dir) significantly speeds up
builds when multiple targets are built in succession, especially for large host
packages like NodeJS.

$(STAGING_DIR)/host is kept in addition to $(STAGING_DIR_HOSTPKG) in most
places; it is still used as destination for host files in Build/InstallDev.

Signed-off-by: Matthias Schiffer &lt;mschiffer@universe-factory.net&gt;
</content>
</entry>
<entry>
<title>build: use CXXFLAGS if defined</title>
<updated>2016-10-13T15:04:43Z</updated>
<author>
<name>Hauke Mehrtens</name>
</author>
<published>2016-10-02T23:21:13Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=559fb537d83bc30fc2dfa783292b9f86712966d6'/>
<id>urn:sha1:559fb537d83bc30fc2dfa783292b9f86712966d6</id>
<content type='text'>
Instead of using TARGET_CFLAGS and EXTRA_CFLAGS in cmake and scons
build use the TARGET_CXXFLAGS and EXTRA_CXXFLAGS like it is done for
normal make and configure. configure used TARGET_CXXFLAGS and
EXTRA_CFLAGS for the CXXFLAGS. The package-default.mk sets
"EXTRA_CXXFLAGS = $(EXTRA_CFLAGS)" so using EXTRA_CXXFLAGS flags should
be save.

Signed-off-by: Hauke Mehrtens &lt;hauke@hauke-m.de&gt;
</content>
</entry>
<entry>
<title>include/cmake.mk: fix host builds</title>
<updated>2016-07-29T20:47:46Z</updated>
<author>
<name>Felix Fietkau</name>
</author>
<published>2016-07-29T20:47:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf'/>
<id>urn:sha1:50e7c1f79d0e72c6f6b63611c5b93fc8be2f70cf</id>
<content type='text'>
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt;
</content>
</entry>
<entry>
<title>cmake: include/cmake.mk add CMAKE_BINARY_SUBDIR to allow out of source tree builds</title>
<updated>2016-07-29T18:27:34Z</updated>
<author>
<name>Luke McKee</name>
</author>
<published>2016-07-23T19:00:24Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=eadf5fb7f8313d78fa503665e96457d080e6e3f9'/>
<id>urn:sha1:eadf5fb7f8313d78fa503665e96457d080e6e3f9</id>
<content type='text'>
Some packages need out of source tree building with cmake, for example
when building kernel modules.
See an example here:
https://sourceforge.net/p/accel-ppp/code/ci/master/tree/README

Signed-off-by: Luke McKee &lt;hojuruku@gmail.com&gt;
Signed-off-by: Felix Fietkau &lt;nbd@nbd.name&gt; [cleanup, rework]
</content>
</entry>
<entry>
<title>include/cmake.mk: Add helper macro to handle conditionals for CMake boolean type variables</title>
<updated>2016-04-13T20:21:38Z</updated>
<author>
<name>Vasilis Tsiligiannis</name>
</author>
<published>2016-04-13T20:21:38Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/openwrt/staging/hauke/commit/?id=d55512075b368ef060eae5f41b946a96936d1ceb'/>
<id>urn:sha1:d55512075b368ef060eae5f41b946a96936d1ceb</id>
<content type='text'>
Signed-off-by: Vasilis Tsiligiannis &lt;acinonyx@openwrt.gr&gt;

SVN-Revision: 49164
</content>
</entry>
</feed>
