Skip to content

Commit 17d4996

Browse files
gonsielaprej
authored andcommitted
removed HAVE_CTIME config file
using -D instead
1 parent ca0d7a3 commit 17d4996

File tree

4 files changed

+1
-8
lines changed

4 files changed

+1
-8
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# ignoring generated files
2-
core/config.h
3-
41
# ignore models that aren't already in tree
52
# (must manually add models to override this)
63
models/*

core/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ tw-util.c)
6262
## Print Date and Time at top of ROSS output
6363
INCLUDE (CheckFunctionExists)
6464
CHECK_FUNCTION_EXISTS(ctime HAVE_CTIME)
65-
CONFIGURE_FILE(config.h.in ${CMAKE_CURRENT_SOURCE_DIR}/config.h)
65+
ADD_DEFINITIONS(-DHAVE_CTIME=${HAVE_CTIME})
6666
## Print ROSS Git Hash
6767
## From http://stackoverflow.com/questions/1435953/how-can-i-pass-git-sha1-to-compiler-as-definition-using-cmake
6868
LIST(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/")

core/config.h.in

-1
This file was deleted.

core/tw-setup.c

-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
#include <ross.h>
22

3-
// needed for CTIME
4-
#include "config.h"
5-
63
/**
74
* @file tw-setup.c
85
* @brief tw_define_lps is defined here!

0 commit comments

Comments
 (0)