Placed the if in the wrong place.

This commit is contained in:
Ethan Rublee 2011-06-01 18:54:34 +00:00
parent 7e2221f38f
commit 6c437cce36

View File

@ -380,8 +380,6 @@ if(BUILD_TESTS)
add_executable(${the_target} ${test_srcs} ${test_hdrs})
endif(BUILD_TESTS)
if(PCHSupport_FOUND AND USE_PRECOMPILED_HEADERS)
set(pch_header ${CMAKE_CURRENT_SOURCE_DIR}/test/test_precomp.hpp)
if(${CMAKE_GENERATOR} MATCHES "Visual*" OR ${CMAKE_GENERATOR} MATCHES "Xcode*")
@ -416,3 +414,4 @@ add_test(${the_target} "${LOC}")
if(WIN32)
install(TARGETS ${the_target} RUNTIME DESTINATION bin COMPONENT main)
endif()
endif(BUILD_TESTS)