Browse Source

These flags are meaningless outside of Windows

Michael Hansen 10 years ago
parent
commit
5e6604cf13
  1. 18
      CMakeLists.txt
  2. 9
      Sources/Plasma/FeatureLib/pfLocalizationMgr/CMakeLists.txt

18
CMakeLists.txt

@ -69,14 +69,16 @@ endif()
include(PrecompiledHeader) #Precompiled Header helper macros include(PrecompiledHeader) #Precompiled Header helper macros
# libCurl isn't smart enough to detect this for us, so we have to configure it ourselves if(WIN32)
option(CURL_IS_STATIC "Using the static version of libcurl?" ON) # libCurl isn't smart enough to detect this for us, so we have to configure it ourselves
if(CURL_IS_STATIC) option(CURL_IS_STATIC "Using the static version of libcurl?" ON)
add_definitions(-DCURL_STATICLIB) if(CURL_IS_STATIC)
endif(CURL_IS_STATIC) add_definitions(-DCURL_STATICLIB)
endif(CURL_IS_STATIC)
# Same story for expat
option(EXPAT_IS_STATIC "Using the static version of libexpat" ON) # Same story for expat
option(EXPAT_IS_STATIC "Using the static version of libexpat" ON)
endif(WIN32)
option(PLASMA_EXTERNAL_RELEASE "Is this release intended for the general public?" OFF) option(PLASMA_EXTERNAL_RELEASE "Is this release intended for the general public?" OFF)
if(PLASMA_EXTERNAL_RELEASE) if(PLASMA_EXTERNAL_RELEASE)

9
Sources/Plasma/FeatureLib/pfLocalizationMgr/CMakeLists.txt

@ -3,9 +3,12 @@ include_directories(../../PubUtilLib)
include_directories(${EXPAT_INCLUDE_DIR}) include_directories(${EXPAT_INCLUDE_DIR})
add_definitions(-DWIN32) if(WIN32)
if(EXPAT_IS_STATIC) add_definitions(-DWIN32)
add_definitions(-DXML_STATIC)
if(EXPAT_IS_STATIC)
add_definitions(-DXML_STATIC)
endif()
endif() endif()
set(pfLocalizationMgr_SOURCES set(pfLocalizationMgr_SOURCES

Loading…
Cancel
Save