Commit 872cbb80 authored by Kentoku SHIBA's avatar Kentoku SHIBA

revert CMakeList.txt at groonga-normalizer-mysql/normalizers

parent d33cef1c
......@@ -54,13 +54,6 @@ else()
_pkgconfig_invoke(groonga GROONGA PLUGINS_DIR "" --variable=pluginsdir)
endif()
if(NOT DEFINED CMAKE_C_COMPILE_OPTIONS_PIC)
# For old CMake
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
check_build_flag("-fPIC")
endif()
endif()
include_directories(
${CMAKE_BINARY_DIR}
${GROONGA_INCLUDE_DIRS})
......
......@@ -17,22 +17,10 @@
set(NORMALIZERS_DIR "${GROONGA_PLUGINS_DIR}/normalizers")
read_file_list(${CMAKE_CURRENT_SOURCE_DIR}/mysql_sources.am MYSQL_SOURCES)
if(NOT DEFINED CMAKE_C_COMPILE_OPTIONS_PIC)
# For old CMake
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_COMPILER_IS_CLANGCXX)
check_build_flag("-fPIC")
endif()
endif()
if(GROONGA_NORMALIZER_MYSQL_EMBED)
add_library(mysql_normalizer STATIC ${MYSQL_SOURCES})
add_convenience_library(mysql_normalizer ${MYSQL_SOURCES})
set_property(TARGET mysql_normalizer APPEND PROPERTY
COMPILE_DEFINITIONS "GROONGA_NORMALIZER_MYSQL_EMBED")
set_target_properties(
mysql_normalizer
PROPERTIES
POSITION_INDEPENDENT_CODE ON)
else()
add_library(mysql_normalizer MODULE ${MYSQL_SOURCES})
set_target_properties(mysql_normalizer PROPERTIES
......
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