CMakeLists.txt: Fix missing parameter names

VERSION must be indicated when passing a version string to project().
Also, LANGUAGES must be also be passed when the language name is not the
only argument to project() (apart from the project name itself).
This commit is contained in:
Xavier Del Campo Romero 2023-11-10 14:43:39 +01:00
parent e7b84e0bf6
commit 7be16e6e5c
Signed by: xavi
GPG Key ID: 84FF3612A9BF43F2
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
cmake_minimum_required(VERSION 3.0)
project(dynstr C 0.1.0)
project(dynstr LANGUAGES C VERSION 0.1.0)
add_library(${PROJECT_NAME} "dynstr.c")
target_include_directories(${PROJECT_NAME} PUBLIC "include")
install(TARGETS ${PROJECT_NAME})