Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ As an example, here is a minimal `CMakeLists.txt` to compile the `simple_perf`
SystemC example as a stand-alone application:

--- Start: CMakeLists.txt ---
cmake_minimum_required(VERSION 3.5)
cmake_minimum_required(VERSION 3.16)
project(simple_perf CXX)

set (CMAKE_PREFIX_PATH /opt/systemc)
Expand Down
2 changes: 1 addition & 1 deletion cmake/run-example.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
###############################################################################


cmake_minimum_required(VERSION 3.5...3.31)
cmake_minimum_required(VERSION 3.16...3.31)

if(NOT TEST_EXE)
message(FATAL_ERROR " Usage: cmake -DTEST_EXE=<executable> [-DTEST_INPUT=<input-file>] \\\n"
Expand Down
12 changes: 11 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,14 @@
#
###############################################################################

cmake_minimum_required(VERSION 3.8...3.31)
cmake_minimum_required(VERSION 3.16...3.31)

###############################################################################
# Build rules for SystemC library
###############################################################################

option(SYSTEMC_UNITY_BUILD "Enable unity build" OFF)

function(add_systemc_library libName scBuildDefine)

add_library(${libName} ${ARGN})
Expand Down Expand Up @@ -124,6 +126,14 @@ function(add_systemc_library libName scBuildDefine)
SOVERSION ${SystemCLanguage_SOVERSION}
)

if(SYSTEMC_UNITY_BUILD)
message(STATUS "Enable SystemC unity build")
set_target_properties(${libName} PROPERTIES UNITY_BUILD ON)
set_source_files_properties(sysc/utils/sc_utils_ids.cpp PROPERTIES SKIP_UNITY_BUILD_INCLUSION ON)
else()
message(STATUS "Disable SystemC unity build")
endif()

endfunction(add_systemc_library)

set(SYSTEMC_CORE_SRC
Expand Down
2 changes: 1 addition & 1 deletion src/sysc/datatypes/fx/sc_fxnum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -664,7 +664,7 @@ to_string( const scfx_ieee_double&,
sc_numrep,
int,
sc_fmt,
const scfx_params* = 0 );
const scfx_params*);


// explicit conversion to character string
Expand Down
Loading