From 4416e71a0acc17310dc690e88a49739264139ccf Mon Sep 17 00:00:00 2001 From: Jan Borsodi Date: Tue, 14 Sep 2010 12:29:26 +0200 Subject: [PATCH] Fix for linker warnings on windows, this makes sure headers of MyGUI does not use dllexport for windows as we are supposed to link statically to the library. --- CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 742b56287..cb591089e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -225,6 +225,13 @@ link_directories(${Boost_LIBRARY_DIRS} ${OGRE_LIB_DIR}) add_subdirectory( extern/caelum ) add_subdirectory( extern/mygui_3.0.1 ) +# Make sure that certain libraries are used as static libraries +# This is in effect turns off __declspec (dllexport) for windows +# Each library will also need to be configured to build as a static lib + +# MyGUI: extern/mygui_3.0.0/ +add_definitions(-DMYGUI_STATIC) + # Specify build paths set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${OpenMW_BINARY_DIR}")