summaryrefslogtreecommitdiff
path: root/mysys/CMakeLists.txt
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@sol>2009-12-01 18:28:13 +0000
committerVladislav Vaintroub <wlad@sol>2009-12-01 18:28:13 +0000
commitf7269ba0c7726b94f1dcc1be06dedb8ea2357bb4 (patch)
tree290987a54abdda4cef0ddbe235b6173d037b6b87 /mysys/CMakeLists.txt
parenta2a276b200926a747c7cd2c8d2b8ce420fc2200d (diff)
downloadmariadb-git-f7269ba0c7726b94f1dcc1be06dedb8ea2357bb4.tar.gz
fix build errors
Diffstat (limited to 'mysys/CMakeLists.txt')
-rwxr-xr-xmysys/CMakeLists.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysys/CMakeLists.txt b/mysys/CMakeLists.txt
index b6170170be1..2264b99e75b 100755
--- a/mysys/CMakeLists.txt
+++ b/mysys/CMakeLists.txt
@@ -48,10 +48,10 @@ IF(CMAKE_COMPILER_IS_GNUCC AND NOT HAVE_CXX_NEW)
ADD_DEFINITIONS( -DUSE_MYSYS_NEW)
ENDIF()
-IF(CMAKE_C_COMPILER MATCHES SunPro)
+IF(CMAKE_SYSTEM_NAME MATCHES "SunOS" AND CMAKE_C_COMPILER_ID MATCHES "SunPro")
# Inline assembly template for rdtsc
- SET_SOURCE_FILE_PROPERTIES(my_rdtsc.c
- PROPERTIES COMPILE_FLAGS ${CMAKE_CURRENT_SOURCE_DIR}/my_timer_cycles.il)
+ SET_SOURCE_FILES_PROPERTIES(my_rdtsc.c
+ PROPERTIES COMPILE_FLAGS "${CMAKE_CURRENT_SOURCE_DIR}/my_timer_cycles.il")
ENDIF()
IF(HAVE_LARGE_PAGES)