CMake tweaking

This commit is contained in:
Jez Higgins 2012-11-01 23:37:28 +00:00
parent afcddb0175
commit cbb4a0e117

View file

@ -406,12 +406,11 @@ if(MSVC)
add_custom_command(OUTPUT ../include/SAX/ArabicaConfig.hpp
COMMAND ${CMAKE_CXX_COMPILER} /TC /EP -D ${ARABICA_XML_BACKEND} ${CMAKE_CURRENT_LIST_DIR}/${ARABICA_CONFIG_FILE} > ../include/SAX/ArabicaConfig.hpp
)
endif()
if(CMAKE_COMPILER_IS_GNUCC)
else()
#
# Preprocess configuration file for Linux/GCC
add_custom_command(OUTPUT ../include/SAX/ArabicaConfig.hpp
COMMAND ${CMAKE_CXX_COMPILER} -E -D ${ARABICA_XML_BACKEND} ${CMAKE_CURRENT_LIST_DIR}/${ARABICA_CONFIG_FILE} > ../include/SAX/ArabicaConfig.hpp
COMMAND ${CMAKE_CXX_COMPILER} -E -D ${ARABICA_XML_BACKEND} -D NO_WINDOWS ${CMAKE_CURRENT_LIST_DIR}/${ARABICA_CONFIG_FILE} > ../include/SAX/ArabicaConfig.hpp
)
endif()