Skip to content

Commit 97c3d19

Browse files
starseekercshorler
authored andcommitted
sc_cf.h -> config.h
Remove unused sc_cf_cmake.h.in, rename sc_cf.h to the more standard name "config.h", don't call the generator twice
1 parent 65e0f70 commit 97c3d19

21 files changed

Lines changed: 22 additions & 56 deletions

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ include(SC_Locale)
153153
# logic related to regenerating the lexer and parser source code
154154
include(SC_Regenerate)
155155

156-
# create config header sc_cf.h
156+
# create config.h header
157157
include(SC_Config_Headers)
158158

159159
if(NOT DEFINED SC_SDAI_ADDITIONAL_EXES_SRCS)
@@ -174,10 +174,6 @@ if(NOT SC_IS_SUBBUILD)
174174
".. Generating step can take a while if you are building several schemas.")
175175
endif(NOT SC_IS_SUBBUILD)
176176

177-
# create config headers sc_cf.h
178-
include(SC_Config_Headers)
179-
180-
181177
################
182178

183179
if(MSVC)

cmake/SC_Config_Headers.cmake

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# create sc_cf.h
1+
# create config.h
22

33
include(CheckLibraryExists)
44
include(CheckIncludeFile)
@@ -77,9 +77,9 @@ int main() {return !(f() == f());}
7777
cmake_pop_check_state()
7878
endif(SC_ENABLE_CXX11)
7979

80-
# Now that all the tests are done, configure the sc_cf.h file:
81-
configure_file(${CMAKE_SOURCE_DIR}/include/sc_cf.h.in ${SC_BINARY_DIR}/${INCLUDE_DIR}/sc_cf.h.gen)
82-
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SC_BINARY_DIR}/${INCLUDE_DIR}/sc_cf.h.gen ${SC_BINARY_DIR}/${INCLUDE_DIR}/sc_cf.h)
80+
# Now that all the tests are done, configure the config.h file:
81+
configure_file(${CMAKE_SOURCE_DIR}/include/config.h.in ${SC_BINARY_DIR}/${INCLUDE_DIR}/config.h.gen)
82+
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_if_different ${SC_BINARY_DIR}/${INCLUDE_DIR}/config.h.gen ${SC_BINARY_DIR}/${INCLUDE_DIR}/config.h)
8383

8484
# Local Variables:
8585
# tab-width: 8

include/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ install(FILES ordered_attrs.h
3434
sc_export.h
3535
DESTINATION ${INCLUDE_DIR}/stepcode)
3636

37-
install(FILES ${SC_BINARY_DIR}/${INCLUDE_DIR}/sc_cf.h
37+
install(FILES ${SC_BINARY_DIR}/${INCLUDE_DIR}/config.h
3838
DESTINATION ${INCLUDE_DIR}/stepcode)
3939

4040
# Local Variables:
File renamed without changes.

include/express/basic.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
*
7272
*/
7373

74-
#include <sc_cf.h>
74+
#include "config.h"
7575
#include <sc_export.h>
7676
#include <stdio.h>
7777

include/sc_cf_cmake.h.in

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/base/sc_memmgr.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11

22
#define SC_MEMMGR_CC
33

4-
#include <sc_cf.h>
4+
#include "config.h"
55
#include "sc_memmgr.h"
66

77
#include <stdio.h>

src/cllazyfile/lazyTypes.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#ifndef LAZYTYPES_H
22
#define LAZYTYPES_H
33

4-
#include "sc_cf.h"
4+
#include "config.h"
55

66
#include <iostream>
77
#include <vector>

src/cllazyfile/lazy_test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include <sc_benchmark.h>
33
#include "SdaiSchemaInit.h"
44
#include "sc_memmgr.h"
5-
#include <sc_cf.h>
5+
#include "config.h"
66

77
#ifndef NO_REGISTRY
88
# include "schema.h"

src/clstepcore/sdai.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
* values for the EXPRESS base types.
1919
*/
2020

21-
#include "sc_cf.h"
21+
#include "config.h"
2222
#include <sc_export.h>
2323

2424
extern const char * SCLversion;

0 commit comments

Comments
 (0)