Skip to content

Commit 570d75c

Browse files
committed
Fix Build Type
1 parent b70d930 commit 570d75c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

gpgpusim_check.cmake

+1-2
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,11 @@ execute_process(
116116
# Get debug or release
117117
# Set with -DCMAKE_BUILD_TYPE=Debug|Release to change build type
118118
message(CHECK_START "Checking for CMAKE_BUILD_TYPE")
119-
if(NOT ${CMAKE_BUILD_TYPE})
119+
if(NOT CMAKE_BUILD_TYPE)
120120
set(CMAKE_BUILD_TYPE Release)
121121
set(GPGPUSIM_BUILD_MODE "release" CACHE STRING "" FORCE)
122122
else()
123123
string(TOLOWER "${CMAKE_BUILD_TYPE}" GPGPUSIM_BUILD_MODE)
124-
set(CMAKE_BUILD_TYPE Debug)
125124
endif()
126125
message(CHECK_PASS "${CMAKE_BUILD_TYPE}")
127126
# TODO: Make this step an installation phase that handle copying so and creating symlinks

0 commit comments

Comments
 (0)