Commit a8fad525 authored by durswd's avatar durswd

Changed the order of conditions

parent 00cb9f4e
...@@ -531,13 +531,13 @@ if (NOT BUILD_SHARED_LIBS) ...@@ -531,13 +531,13 @@ if (NOT BUILD_SHARED_LIBS)
else (NOT BUILD_SHARED_LIBS) else (NOT BUILD_SHARED_LIBS)
target_compile_definitions (glog PRIVATE GOOGLE_GLOG_IS_A_DLL=1) target_compile_definitions (glog PRIVATE GOOGLE_GLOG_IS_A_DLL=1)
if (HAVE___ATTRIBUTE__VISIBILITY_DEFAULT AND NOT MSVC) if (HAVE___DECLSPEC)
set (_EXPORT "__attribute__((visibility(\"default\")))")
set (_IMPORT "")
elseif (HAVE___DECLSPEC)
set (_EXPORT "__declspec(dllexport)") set (_EXPORT "__declspec(dllexport)")
set (_IMPORT "__declspec(dllimport)") set (_IMPORT "__declspec(dllimport)")
endif (HAVE___ATTRIBUTE__VISIBILITY_DEFAULT AND NOT MSVC) elseif (HAVE___ATTRIBUTE__VISIBILITY_DEFAULT)
set (_EXPORT "__attribute__((visibility(\"default\")))")
set (_IMPORT "")
endif (HAVE___DECLSPEC)
target_compile_definitions (glog PRIVATE target_compile_definitions (glog PRIVATE
"GOOGLE_GLOG_DLL_DECL=${_EXPORT}") "GOOGLE_GLOG_DLL_DECL=${_EXPORT}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment