minimum required cMake version is 3.19 and not 3.13 #77

Open
opened 2023-09-06 12:09:20 -05:00 by sunavlis · 1 comment
sunavlis commented 2023-09-06 12:09:20 -05:00 (Migrated from github.com)

Using the project with cMake 3.16 fails with the error:

CMake Error at build/cppcodec-src/CMakeLists.txt:70 (set_target_properties):
  INTERFACE_LIBRARY targets may only have whitelisted properties.  The
  property "LINKER_LANGUAGE" is not allowed.

The property set on Line 70: set_target_properties(cppcodec PROPERTIES LINKER_LANGUAGE CXX)
works only with cMake version 3.19 or newer.

Is there any option to remove the property? Or should the minimum required cMake version on Line 1 be increased to cmake_minimum_required(VERSION 3.19)?

Using the project with cMake 3.16 fails with the error: ``` CMake Error at build/cppcodec-src/CMakeLists.txt:70 (set_target_properties): INTERFACE_LIBRARY targets may only have whitelisted properties. The property "LINKER_LANGUAGE" is not allowed. ``` The property set on Line 70: `set_target_properties(cppcodec PROPERTIES LINKER_LANGUAGE CXX)` works only with cMake version 3.19 or newer. Is there any option to remove the property? Or should the minimum required cMake version on Line 1 be increased to `cmake_minimum_required(VERSION 3.19)`?
sunavlis commented 2023-09-06 12:27:26 -05:00 (Migrated from github.com)

I think it is also possible to just remove the set_target_properties(cppcodec PROPERTIES LINKER_LANGUAGE CXX) line.
The project definition on Line 2 project(cppcodec CXX) already defines the language as well as the linker language.

I think it is also possible to just remove the `set_target_properties(cppcodec PROPERTIES LINKER_LANGUAGE CXX)` line. The project definition on Line 2 `project(cppcodec CXX)` already defines the language as well as the linker language.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-tplgy/cppcodec#77
No description provided.