Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8391377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:14:42+00:00 2026-06-09T19:14:42+00:00

In converting from automake to cmake, I have to carry over some tests for

  • 0

In converting from automake to cmake, I have to carry over some tests for function existence. I didn’t write the configure.ac script, but I do have to reproduce the functionality as closely as follows, so please don’t berate me about these checks. I have to make them.

So, I’m trying to use the CheckFunctionExists module to check for the existence of the time function (among others). Here’s the cmake code

include(CheckIncludeFiles)

CHECK_FUNCTION_EXISTS(time, HAVE_TIME_FUNCTION)

if(NOT HAVE_TIME_FUNCTION)
    message(FATAL_ERROR "ERROR: required time function not found")
endif(NOT HAVE_TIME_FUNCTION)

This fails every time, even though I know for a fact that I have the time funcion (duh). I tried replacing time with printf and it still fails. Is there some setup I have to do to make this check work correctly?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:14:43+00:00Added an answer on June 9, 2026 at 7:14 pm

    You should remove the ,:

    CHECK_FUNCTION_EXISTS(time HAVE_TIME_FUNCTION)
    

    In CMake, separators are spaces or semi-colons, the comma is part of the variable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some objective-c code I'm converting from iPhone to iPad. CFGregorianDate is used
I'm converting SQL from Teradata to SQL Server in Teradata, they have the format
I am manually converting code from Java (1.6) to C# and finding some difficulty
I have a C application I'm converting from a set of hand coded Makefiles
i am converting from access to mysql i have a table in access where
I know when converting from nvarchar to varchar , some data will be lost/changed.
To all: I have a question about converting from string to float in python
I have problem converting from string to date. The first one i Ok: Date
I have have several lines from a table that I’m converting from Excel to
I have a question about converting from std::vector to an array. I have a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.