feat(build): build standard library when building on Windows

This commit is contained in:
Leonardo de Moura 2014-09-20 10:51:00 -07:00
parent e3ac1f66e0
commit 8867f47dd6

View file

@ -313,15 +313,13 @@ if(NOT DEFINED PROCESSOR_COUNT)
endif() endif()
endif() endif()
if((${CYGWIN} EQUAL "1") OR (NOT (${CMAKE_SYSTEM_NAME} MATCHES "Windows")))
# Only build libraries if we are NOT cross compiling # Only build libraries if we are NOT cross compiling
add_custom_target( add_custom_target(
standard_lib ALL standard_lib ALL
COMMAND ${LEAN_SOURCE_DIR}/../bin/linja COMMAND python ${LEAN_SOURCE_DIR}/../bin/linja
DEPENDS ${CMAKE_BINARY_DIR}/shell/lean DEPENDS ${CMAKE_BINARY_DIR}/shell/lean
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library
) )
endif()
add_custom_target(clean-olean add_custom_target(clean-olean
WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library WORKING_DIRECTORY ${LEAN_SOURCE_DIR}/../library