Skip to content

Commit

Permalink
set DCMAKE_BUILD_TYPE
Browse files Browse the repository at this point in the history
  • Loading branch information
JRPan committed Apr 4, 2024
1 parent 144a9f3 commit 1ca34c5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions gpgpusim_check.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,13 @@ execute_process(
# Set with -DCMAKE_BUILD_TYPE=Debug|Release to change build type
message(CHECK_START "Checking for CMAKE_BUILD_TYPE")
if(NOT CMAKE_BUILD_TYPE)
message(CHECK_PASS "not set")
set(CMAKE_BUILD_TYPE Release)
set(GPGPUSIM_BUILD_MODE "release" CACHE STRING "" FORCE)
else()
message(CHECK_PASS "${CMAKE_BUILD_TYPE}")
string(TOLOWER "${CMAKE_BUILD_TYPE}" GPGPUSIM_BUILD_MODE)
set(CMAKE_BUILD_TYPE Debug)
endif()
message(CHECK_PASS "${CMAKE_BUILD_TYPE}")
# TODO: Make this step an installation phase that handle copying so and creating symlinks
message(STATUS "Setting binary directory to ${CMAKE_BINARY_DIR}")

Expand Down

0 comments on commit 1ca34c5

Please sign in to comment.