Generalize how -fPIC is added, even in cwdebug.

Although the file is empty when not compiling with CWDEBUG,
windows doesn't like the -fPIC there.
This commit is contained in:
Aleric Inglewood
2011-05-16 23:49:03 +02:00
parent 10af185abc
commit addb7a559e
2 changed files with 8 additions and 2 deletions

View File

@@ -26,7 +26,13 @@ set(cwdebug_HEADER_FILES
set_source_files_properties(${cwdebug_HEADER_FILES}
PROPERTIES HEADER_FILE_ONLY TRUE)
add_definitions(-fPIC)
if(NOT WORD_SIZE EQUAL 32)
if(WINDOWS)
add_definitions(/FIXED:NO)
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
add_definitions(-fPIC)
endif(WINDOWS)
endif (NOT WORD_SIZE EQUAL 32)
list(APPEND cwdebug_SOURCE_FILES ${cwdebug_HEADER_FILES})

View File

@@ -29,7 +29,7 @@ if(NOT WORD_SIZE EQUAL 32)
else(WINDOWS) # not windows therefore gcc LINUX and DARWIN
add_definitions(-fPIC)
endif(WINDOWS)
endif (NOT WORD_SIZE EQUAL 32)
endif (NOT WORD_SIZE EQUAL 32)
set(basic_plugin_filepicker_SOURCE_FILES
basic_plugin_filepicker.cpp