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