pkg-cmake: use $(HOST_DIR) instead of $(HOST_DIR)/usr as prefix
authorArnout Vandecappelle <arnout@mind.be>
Tue, 4 Jul 2017 14:04:00 +0000 (16:04 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Wed, 5 Jul 2017 09:49:30 +0000 (11:49 +0200)
Remove the redundant usr/ component of the HOST_DIR paths. Since a
previous commit added a symlink from $(HOST_DIR)/usr to $(HOST_DIR),
everything keeps on working.

Build-tested with a bunch of cmake packages.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Reviewed-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/pkg-cmake.mk

index 0897430f7088ab65d232c84d29f0a64d2ce988ab..0606d26ad7c2d68695b5b0a19c7340b563b99c16 100644 (file)
@@ -115,7 +115,7 @@ define $(2)_CONFIGURE_CMDS
                -DCMAKE_FIND_ROOT_PATH_MODE_PROGRAM="BOTH" \
                -DCMAKE_FIND_ROOT_PATH_MODE_LIBRARY="BOTH" \
                -DCMAKE_FIND_ROOT_PATH_MODE_INCLUDE="BOTH" \
-               -DCMAKE_INSTALL_PREFIX="$$(HOST_DIR)/usr" \
+               -DCMAKE_INSTALL_PREFIX="$$(HOST_DIR)" \
                -DCMAKE_C_FLAGS="$$(HOST_CFLAGS)" \
                -DCMAKE_CXX_FLAGS="$$(HOST_CXXFLAGS)" \
                -DCMAKE_EXE_LINKER_FLAGS="$$(HOST_LDFLAGS)" \