Skip to content

Commit

Permalink
Have cmake option -DK_WAY_HEAP=n (where n is a value >= 2) only define
Browse files Browse the repository at this point in the history
a macro when compiling simulators since the dmClock library no longer
uses it.

Signed-off-by: J. Eric Ivancich <[email protected]>
  • Loading branch information
ivancich committed Jan 9, 2017
1 parent c978332 commit 9d72e7d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(K_WAY_HEAP)
if(K_WAY_HEAP LESS 2)
message(FATAL_ERROR "K_WAY_HEAP value should be at least 2")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DK_WAY_HEAP=${K_WAY_HEAP}")
set(CMAKE_CXX_SIM_FLAGS "-DK_WAY_HEAP=${K_WAY_HEAP}")
endif()
endif()

Expand Down
2 changes: 1 addition & 1 deletion sim/src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include_directories(../../src) # dmclock code
include_directories(../../support/src)
include_directories(${BOOST_INCLUDE_DIR})

set(local_flags "-Wall -pthread")
set(local_flags "-Wall -pthread ${CMAKE_CXX_SIM_FLAGS}")

set(ssched_sim_srcs test_ssched.cc test_ssched_main.cc)
set(dmc_sim_srcs test_dmclock.cc test_dmclock_main.cc)
Expand Down

0 comments on commit 9d72e7d

Please sign in to comment.