File tree Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Expand file tree Collapse file tree 1 file changed +10
-11
lines changed Original file line number Diff line number Diff line change @@ -85,34 +85,33 @@ set( SUFFIX_BIN_DEFAULT "" )
85
85
86
86
if (TARGET_PLATFORM EQUAL 32 OR TARGET_PLATFORM EQUAL 64 )
87
87
set (TARGET_PLATFORM ${TARGET_PLATFORM} CACHE STRING "Target platform type (32-bit or 64-bit)" FORCE )
88
- if ( TARGET_PLATFORM EQUAL 64 )
89
- set ( SUFFIX_LIB_DEFAULT "64" )
90
- endif ( )
91
88
else ()
92
89
if (CMAKE_SIZEOF_VOID_P MATCHES 8 )
93
90
set (TARGET_PLATFORM "64" CACHE STRING "Target platform type (32-bit or 64-bit)" FORCE )
94
- set ( SUFFIX_LIB_DEFAULT "64" )
95
91
else ()
96
92
set (TARGET_PLATFORM "32" CACHE STRING "Target platform type (32-bit or 64-bit)" FORCE )
97
93
endif ()
98
94
endif ()
99
95
100
- set ( SUFFIX_LIB ${SUFFIX_LIB_DEFAULT} CACHE STRING "String to append to 'lib' install path" )
101
- set ( SUFFIX_BIN ${SUFFIX_BIN_DEFAULT} CACHE STRING "String to append to 'bin' install path" )
102
-
103
- if ( MSVC_IDE )
104
- set_property ( GLOBAL PROPERTY USE_FOLDERS TRUE )
105
- endif ( )
106
-
107
96
message (STATUS "Target platform: ${TARGET_PLATFORM} -bit" )
108
97
if (TARGET_PLATFORM EQUAL 32 )
109
98
set (_arch "x86" INTERNAL )
110
99
set_property (GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS FALSE )
111
100
else ()
112
101
set (_arch "x86_64" INTERNAL )
113
102
set_property (GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS TRUE )
103
+ if ( NOT APPLE )
104
+ set ( SUFFIX_LIB_DEFAULT "64" )
105
+ endif ( )
114
106
endif ()
115
107
108
+ set ( SUFFIX_LIB ${SUFFIX_LIB_DEFAULT} CACHE STRING "String to append to 'lib' install path" )
109
+ set ( SUFFIX_BIN ${SUFFIX_BIN_DEFAULT} CACHE STRING "String to append to 'bin' install path" )
110
+
111
+ if ( MSVC_IDE )
112
+ set_property ( GLOBAL PROPERTY USE_FOLDERS TRUE )
113
+ endif ( )
114
+
116
115
# add the math library for Linux
117
116
if ( UNIX )
118
117
set (MATH_LIBRARY "m" )
You can’t perform that action at this time.
0 commit comments