Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CMake build error in win10 WSL #8049

Closed
lymslive opened this issue Jul 28, 2023 · 6 comments
Closed

CMake build error in win10 WSL #8049

lymslive opened this issue Jul 28, 2023 · 6 comments
Labels

Comments

@lymslive
Copy link

When I clone this repos and try to build it, report errors as following:

$ cmake --version
cmake version 3.16.3

CMake suite maintained and supported by Kitware (kitware.com/cmake).

$ cmake ..
-- Proceeding with version: 23.5.26.11
-- The CXX compiler identification is GNU 9.4.0
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for strtof_l
-- Looking for strtof_l - found
-- Looking for strtoull_l
-- Looking for strtoull_l - found
-- Looking for realpath
-- Looking for realpath - found
-- CMAKE_CXX_FLAGS:
CMake Error at CMakeLists.txt:562 (set_target_properties):
  INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "LINKER_LANGUAGE" is not allowed.


CMake Error at CMakeLists.txt:513 (target_sources):
  target_sources may only set INTERFACE properties on INTERFACE targets
Call Stack (most recent call first):
  CMakeLists.txt:564 (compile_schema_for_samples)


-- Configuring incomplete, errors occurred!
  • OS : win10 WSl Ubuntu
  • cmake version: 3.16.3 (seems statisfied the cmake_minimum_required first line in CMakeLists.txt)
@adithyab94
Copy link

Hi, I am getting the same error. Did you manage to find a fix

@IghuToh0
Copy link

Same here
cmake version 3.16.3
Linux 4642115b398a 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

@liubo1998
Copy link

I also encountered this issue and cannot find a solution. Could anybody help?

@oliverschmidt
Copy link

See #7979.

fliiiix added a commit to fliiiix/flatbuffers that referenced this issue Nov 22, 2023
Adresses all these issues ->
google#7994
google#7979
google#8049

Fix 7994, Fix 7979, Fix 8049
dbaileychess added a commit that referenced this issue Nov 23, 2023
Adresses all these issues ->
#7994
#7979
#8049

Fix 7994, Fix 7979, Fix 8049

Co-authored-by: Derek Bailey <derekbailey@google.com>
candysonya pushed a commit to candysonya/flatbuffers that referenced this issue Jan 8, 2024
Adresses all these issues ->
google#7994
google#7979
google#8049

Fix 7994, Fix 7979, Fix 8049

Co-authored-by: Derek Bailey <derekbailey@google.com>
Copy link

This issue is stale because it has been open 6 months with no activity. Please comment or label not-stale, or this will be closed in 14 days.

@github-actions github-actions bot added the stale label Feb 23, 2024
Copy link

github-actions bot commented Mar 9, 2024

This issue was automatically closed due to no activity for 6 months plus the 14 day notice period.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants