summaryrefslogtreecommitdiff
path: root/gpgpusim_check.cmake
diff options
context:
space:
mode:
authorJRPAN <[email protected]>2024-04-05 16:48:59 -0400
committerJRPAN <[email protected]>2024-04-05 16:48:59 -0400
commitb70d93016908c10968786eab79b7855c2b436064 (patch)
tree59970585372fda5e292969d02df43f2bde2428d8 /gpgpusim_check.cmake
parentbc8061fd1e3c26be37e2cbb83ff9ca26e6f4dead (diff)
CMAKE_BUILD_TYPE should be inside ${}
Diffstat (limited to 'gpgpusim_check.cmake')
-rw-r--r--gpgpusim_check.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/gpgpusim_check.cmake b/gpgpusim_check.cmake
index 5da46c9..22a62f2 100644
--- a/gpgpusim_check.cmake
+++ b/gpgpusim_check.cmake
@@ -116,7 +116,7 @@ execute_process(
# Get debug or release
# Set with -DCMAKE_BUILD_TYPE=Debug|Release to change build type
message(CHECK_START "Checking for CMAKE_BUILD_TYPE")
-if(NOT CMAKE_BUILD_TYPE)
+if(NOT ${CMAKE_BUILD_TYPE})
set(CMAKE_BUILD_TYPE Release)
set(GPGPUSIM_BUILD_MODE "release" CACHE STRING "" FORCE)
else()