@ -22,7 +22,12 @@ IF(CMAKE_COMPILER_IS_GNUCC)
FOREACH ( namespace std::tr1 std )
FOREACH ( namespace std::tr1 std )
IF ( HAVE_HASH_MAP EQUAL 0 AND NOT STL_HASH_OLD_GCC )
IF ( HAVE_HASH_MAP EQUAL 0 AND NOT STL_HASH_OLD_GCC )
CONFIGURE_FILE ( "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp.in" "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp" )
CONFIGURE_FILE ( "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp.in" "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp" )
IF ( CMAKE_CROSSCOMPILING )
TRY_COMPILE ( HASH_MAP_COMPILE_RESULT ${ PROJECT_BINARY_DIR } /CMakeTmp "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp" )
SET ( HASH_MAP_RUN_RESULT ${ HASH_MAP_COMPILE_RESULT } )
ELSE ( )
TRY_RUN ( HASH_MAP_RUN_RESULT HASH_MAP_COMPILE_RESULT ${ PROJECT_BINARY_DIR } /CMakeTmp "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp" )
TRY_RUN ( HASH_MAP_RUN_RESULT HASH_MAP_COMPILE_RESULT ${ PROJECT_BINARY_DIR } /CMakeTmp "${CMAKE_CURRENT_SOURCE_DIR}/testHashMap.cpp" )
ENDIF ( )
IF ( HASH_MAP_COMPILE_RESULT AND HASH_MAP_RUN_RESULT EQUAL 1 )
IF ( HASH_MAP_COMPILE_RESULT AND HASH_MAP_RUN_RESULT EQUAL 1 )
SET ( HASH_MAP_H < ${ header } > )
SET ( HASH_MAP_H < ${ header } > )
STRING ( REPLACE "map" "set" HASH_SET_H ${ HASH_MAP_H } )
STRING ( REPLACE "map" "set" HASH_SET_H ${ HASH_MAP_H } )
@ -237,8 +242,12 @@ TARGET_LINK_LIBRARIES(protoc protobuf)
# P r o t o b u f c o m p i l e r e x e c u t a b l e
# P r o t o b u f c o m p i l e r e x e c u t a b l e
ADD_EXECUTABLE ( protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h )
IF ( NOT CMAKE_CROSSCOMPILING )
IDE_FOLDER ( protoc-bin "Depends" )
ADD_EXECUTABLE ( protoc-bin google/protobuf/compiler/main.cc google/protobuf/compiler/command_line_interface.h google/protobuf/compiler/cpp/cpp_generator.h )
IDE_FOLDER ( protoc-bin "Depends" )
SET_TARGET_PROPERTIES ( protoc-bin PROPERTIES OUTPUT_NAME protoc )
SET_TARGET_PROPERTIES ( protoc-bin PROPERTIES OUTPUT_NAME protoc )
TARGET_LINK_LIBRARIES ( protoc-bin protoc )
TARGET_LINK_LIBRARIES ( protoc-bin protoc )
EXPORT ( TARGETS protoc-bin FILE ${ CMAKE_BINARY_DIR } /ImportExecutables.cmake )
ENDIF ( )